4,084 Posted Topics
Re: yeah, now he's really going to put effort in it .. | |
Re: on your first try statement, you don't catch the ArithmeticException | |
Re: looks like you have nothing selected when the code on line 235 runs you can verify whether or not this is the problem, by putting that line in comment, and undo the comment on the line below, and retry the program | |
Re: and validate against what? one hard-coded name? a list of names in a db? | |
Re: and this surprises you? you do realize, you're never actually reading the data that is stored in the valid_accounts.txt file, do you? | |
Re: step 1: read in the first number step 2: set the biggest and smallest number equal to the first number step 3: repeat next steps{ A: read in numberN if numberN is bigger than biggest number, overwrite the value current in biggest number if numberN is smaller than smallest number, … | |
Re: this might be an option [code] public static void pauze(){ while(!isContinue()){ //keep the duration small, so the game will be resumed shortly after // the user presses resume sleep(500); } } public static boolean isContinue(){ boolean returnVal = false; // this method checks in the rest of your code, whether … | |
Re: quite a useless post, wouldn't you agree? is this your idea of advice, question, sollution, ... ? if it's a possible sollution, check the dates of the previous posts here. if, what I believe to be the case, this is just you asking us for code: 1. don't restart dead … | |
Re: you might also want to describe and post the errors you get and the result you're expecting to get | |
Re: have you put the package in the resources of your project? | |
Re: what do you need help with? just write the software you think should do the trick, if it doesn't work, show it here, tell us what exception-, errormessages, ... you get and where you 're stuck. do not expect us to write a class or method that will instantly do … | |
Re: 1. check for the number of decimal points in the input. if this is not 1 => false 2. check that everything before the decimal point is a decimal. if not => false 3. check that everything after the decimal point is a decimal if not so=> false 4. check … | |
Re: there are several install-creators on the market, some (if I'm not mistaken) free for non-commercial use. have you tried any of those yet? | |
Re: you could try to write one yourself. a bit like: if ( mousePressed() ){ while(mousePressed() ){} System.out.println("mouse is pressed"); } logic also, for a next time, there's no need to revive threads that have been inactive for over 4 years, you are allowed to create your own. | |
Re: [QUOTE=am_venkat;760399]Hi Friend, Am offering ready made project in java...it cost of 10000 payment and am having more project like this if yr friends interested u can make them call to me... If u needed contact me.... [/QUOTE] if you're knowledge of the Java syntax is as "perfect" as your knowledge … | |
Re: NetBeans ([url]http://www.netbeans.org[/url]) is supposed to run on several OS, have you tried that? | |
Re: if it asks for authentification, just register, smart-ass. don't bring up a thread that's been dead for three years | |
Re: either that, or create a loop with a second (temporary) array that is as big as the first one. array2[0] = array1[n]; array2[1] = array1[n-1]; ... and later on, switch the two, especially if you're having troubles with the correct increase/decrease values, this could be a sollution | |
Re: prash_study: the last post was over 3 years ago. kind off doubt he didn't find anything yet | |
Re: [QUOTE=j!sh@;1148701]hai...... plz... tell me some miniproject topics in java.we are planning to do it in 30 days.[/QUOTE] you have no idea what you are going to do, but you already know how long it'll take you to finish the job??? how about a random 'miniproject topic generator'? | |
Re: [QUOTE=student.09;1184541] array 1:employee last name, array 2: time started array 3: time finished [/QUOTE] considering your assignment: you need 1 array, containing your employee objects. last name, time started and time finished, should be stored within that object | |
Re: don't see a question in there, either. is this your homework and are you not sure how to start? | |
Re: [QUOTE=rojo821;1246557]what code are you referring to[/QUOTE] your Java code looks to me like you might've forgotten to put [Code=Java] this.show(); [/Code] in your code | |
![]() | Re: anyone mentioned 'google' yet? boyz, what did you try yet? there are more 'use an access db in java' tutorials out there, then there are rumours about aliens abducting people. sure, you can just copy-paste the sollution, but your (future)employer will want you to be able to figure it out … ![]() |
Re: [QUOTE=;][/QUOTE] Like JWenting said: 'What Griswolf said' | |
Re: best way is, not at all... as Masijade pointed out, if you want a click-and-run program, you're better of with a jar-executable. this way, you get what you want, without forcing the users of your program to use Windows as operating system. but ... I once had to create an … | |
Re: lich ... it's not that hard to write a countdown, even if you're not using a timer. | |
Re: tried something yourself yet? this forum is to give us the opportunity to help you, and to give you the opportunity to get help in code you've written, and thus learning. it's not ment for you to go shopping for code-on-demand | |
Re: have you tried anything yourself? we are willing to help, but won't just write code on demand | |
Re: putting a - in front of a 0 is kind of redundant, in your second test, you have two different values | |
Re: well... you could store them in a Vector just use the contains(Object test) method to check whether or not it's allready in your list, if so, do nothing, if not, add and when your list is complete, write it | |
Re: how are you tracking the parameter names? my guess would be by using get-methods if you know how to use get-methods, you know how to use the set-methods, and that's what you need. you get your parameters, and in your constructor you call the necessary set-methods with the parameters as … | |
Re: well .. for one, studentBean is an instance of StudentBean, newStudent is an instance of Student and if I may ask, what is this: StudentBean studentBean=(StudentBean) supposed to do? you'll need to finish the line by placing a ';' and even with that, doesn't really look very ... looking for … | |
Re: no, it's because you don't change the value for in and file. if it's there, it will keep finding it | |
Re: [QUOTE=jasimp;750497]I'm sure that in the six months it has been since they created this thread, they have gotten over any negative comments.[/QUOTE] you never know ... maybe he 's the kind of person that keeps a grudge :/ | |
Re: what do you want us to do? write the code and paste it here? the point of this forum is to give you the chance to write it yourself, and ask questions about where you're stuck. so, how far are you with your coding? | |
Re: you can't store a null value into a primitive type. you can do this with an Integer, but not with an int | |
Re: a neat trick would be to start learning java, use it, make some effort and produce at least the objects you think you will be needing. if it's a task for work/school you're working on, you might also consider taking another direction with your life. you can't cruise by your … | |
Re: [QUOTE=vmirz;1205250] Also what is the difference between a static and non-static method?[/QUOTE] as to this question: a non-static method can only be called through an instance of a class, for instance: [Code=Java] public class StaticNonStatic{ // first a non-static method public void runNonStatic(String output){ System.out.println(output); } // second, a static … | |
Re: the error message describes what is to be said: you're calling the method isMember() without parameters, but this method does not exist. replace the isMember() in your print by isMember(numbers) next, I doubt you'll method 'll do what you ultimately want it to do, but I think that'll be quite … | |
Re: you use a loop to go through all the elements. for every element: if ( element < nextElement) swapPlace(element, nextElement) note that you have to use 2 nested loops here, or you'll only sort a part of the array | |
Re: if you don't know how to search data in a DB, I would recommend you prepare yourself for a negative result on your Java exam | |
Re: what 's it doing so far? are you getting wrong output, is there a problem writing the file, are you getting error messages? | |
Re: you can transform your .jar into an exe (which I don't recommend, since you'll loose the ability to run your application on several platforms) if a .jar file is not enough, well... maybe you can get some voice recognition software that 'll open it the moment you say "run my … | |
Re: [QUOTE=budstar;1198417] [Code=Java] int intGroupValue = input.nextInt();[/Code][/QUOTE] drop this line and replace it by [Code=Java] GroupValue = input.nextInt(); [/Code] 2 recommandations, though. in Java, there is a naming convention, which makes it easier to determine whether something is a class or a variable. you might want to follow this, by renaming … | |
Re: [QUOTE=motinade;1197521]Please help, as I do not know what I have done wrong. Error: illegal start of expression, and ; expected. [code] public EmployeeType { CONTRACTOR; PERMANENT; } [/code][/QUOTE] not only do you write all your methods within the main, which you shouldn't, you're trying to write a constructor for EmployeeType … | |
Re: [QUOTE=moutanna;1197930]Try this and let me now: [CODE] ... if (pass == realPass) { found =true; break; } ... [/CODE][/QUOTE] hmmm... why this answer? not only did k2k found (and posted) the right answer himself, but your answer is wrong. if you use Java on a regulary basis, you should know … | |
Re: that might be the best, you'll have to do that anyway, since you say there are three String objects in every element in the ArrayList | |
Re: [QUOTE=BobbieJean;1192600]Hi, [I]"You need to add a new private instance field "birthDate" to the Employee class. Add get and set methods to Employee class for this new birthDate field. The birthdate is to be displayed using a customized toDateString method in the Date class. The birthDate field must be determined from … |
The End.