4,084 Posted Topics
Re: did you follow [these steps](http://eclipse.org/articles/Article-Your%20First%20Plug-in/YourFirstPlugin.html)? | |
Re: Julian, this is no reason to re-boot a dead thread. and really, if you don't know how to run that code, don't try. learn the basics of Java instead. | |
Re: the first thing you need in order to catch an exception, is that an exception must be thrown. In your case, it doesn't matter wetter you catch InputMisMatchException, or one you defined yourself, simply because it won't be thrown. to clarify: you are reading instances of String. maybe you can … | |
Re: RAM is hardware. no, you can't update hardware using code. | |
| |
Re: @divinity: kidding, right? you don't need a Scanner, you make it needlesly complex. the code you need is much easier than what you posted. if you had written the code yourself, you would have understood it, or at the very least, be able to alter it here and there, and … | |
Re: without knowing which value should be where and when ... no, we can't. so far, almost all I see is netbeans generated. first learn the basic logic, then go for UI programming (and recommended, without the NetBeans wysiwyg) a 'for instance' out of your code. textArea.setText(Pizza[counter].getProductNumber() + ""); textArea.setText(Pizza[counter].getName() + … | |
Re: I had a customer once who wanted .exe files instead of .jar files *sigh* guess how happy he was when he found out his program didn't work so well in Linux :P anyhow, an easy-to-use tool to create an .exe from your .jar is NativeJ, an even easier approach to … | |
Re: why would you return the combobox? how about just the value ? | |
Re: but, recompiling it, with " -deprecation " might give you more information. have you tried that ? | |
Re: "an error" ... that's a pretty vague description of what you are experiencing. think you can be a bit more specific? | |
Re: the reason why you get 0 is exactly the same as I explained in your other thread. `System.out.println("your salary is " + salary );` this should be replaced with: `System.out.println("your salary is " + sum );` and `System.out.println("your new salary is " + salary);` should be replaced with `System.out.println("your new … | |
Re: John_Jr: an answer that goes for both your posts: you are working with JavaScript, which has nothing at all to do with Java. please, post your questions in [this forum](https://www.daniweb.com/web-development/javascript-dhtml-ajax/117). | |
Re: you want to reduce a decimal ? `myDecimal -= 1;` | |
Re: well, the problem is that salary is not initialized. you've initialized (set a value) for old_salary and for new_salary, but not for the variable salary. so, just change this line: `int age, sum, difference, old_salary, new_salary, salary;` to `int age, sum, difference, old_salary, new_salary, salary = 0;` but since you … | |
![]() | Re: that might be a mess. writing your own browser from scratch might be a bit (or, a lot more than: 'a bit') difficult. the rules for html5 are fixed, just like those of other versions. have you already a sort of 'first draft' that is able to work with older … |
Re: as long as you print the "Exception: Enter an integer" ... or the other catch block, you are still within the while block. if you want this to stop, add a break statement somewhere. | |
Re: either that, or you host a database online to which your application(s) connect. but then you'll force the users to be connected to the net. | |
Re: it's point is to produce the correct results, as you said: if you don't call those methods, it produces different results. your code is synchronized, that is why it will always return the same (expected) result. as for what those method calls do, I suggest you take a look at … | |
Re: the "answer" to this problem? you just gave a vague description, you mean you want us to do your homework for you ? this looks like something fairly simple. why not write it yourself, and earn the points you want to get ? | |
Re: on a bbq, but keep some sauce close at hand. how come my 'server' won't serve coffee? | |
Re: int[]exam1= new int [e]; int[]exam2= new int[e]; int[]exam3= new int[e]; System.out.println("enter a grade for exam 1:" +exam[e]); exam1[e]=input.nextInt(); System.out.println("enter a grade for exam 2:" +exam[e]); exam2[e]=input.nextInt(); System.out.println("enter a grade for exam 3:" +exam[e]); exam3[e]=input.nextInt(); this part of your code makes no sense. 1. you only need one array, not three … ![]() | |
Re: Vardaan: go through your textbook or course notes. if you have no clue on how to start, either that 'll give you a clue, or you might as wel accept the fact that you might not pass this course. | |
Re: do you know how google work and how it transfers questions into answers ? what exactly are you looking for? a list of java librariess you can use to use natural speech ? | |
Re: what exactly is not clear about these requirements? it's a step by step description of what you need to do. | |
Re: that's because you've named your own class String, which is a very bad idea. class String String str; String newstr; first of all, you're missing a { there, which means that this is not the actual code you are trying. try this: class String{ java.lang.String str; java.lang.String newstr; otherwise the … | |
Re: > can someone help me or tell me why I am getting these errors. without knowing what errors you get ... no. looking at your code, I doubt those are the only lines you get a red line | |
Re: this part: > No such property [maxBackupIndex] is a dead give away. you are trying to use a non existing property | |
Re: she doesn't have anything to show. the part "I tried with youtube videos" more than shows that she's neither able to understand her own notes, nor to figure out what type of material is good to use. Heather: don't bother with youtube video's. just like with about 95% of all … | |
Re: > If I was not busy and i don't have Urgent situatios, you'll always be busy, that's part of life. > I am a Serious student copy pasting your assignments does not make you a 'Serious student', it makes you a lazy one. you haven't even tried to answer any … | |
Re: has it occurred to you that maybe neither if expression is true? then there is no text set. just remove the if statements, or add an additional else{ op1.setText("invalid input"); } after your last if. it should work just fine. about your question: "how it will choose that which field … | |
Re: so, you managed to copy-paste your school assignment. congratulations. now, open up notepad, or your IDE, write the code, compile it and run it. if you get stuck somewhere, then post the code here and ask questions accompanied by relevant information: the actual code, the error (message) you get, ... | |
Re: Oxiegen: > If you are the only coder, and whoever you do the coding for is only interested in the finished product, then why would anyone but the coder care how you use the curly braces? because you'll never be "the only coder". usually employers don't expect that, the moment … | |
Re: hmmm ... if I remember well, my first 'password' wasn't even digital, it was a phrase we had to say if we wanted to enter the camp we built as kids. kinda forgot the real one, so I just said something like > Let me in, ya moron! and they … | |
Re: step 1: don't be lazy step 2: check [this](http://bit.ly/1sQuQps) | |
Re: just keep a list of numbers already added, and compare each new number with that list. | |
Re: you never change the value of ticketPrice, so it will always return true when you test: `if (ticketPrice == 0.00 )` | |
Re: you mean to say: "I am in my final year, I have to turn in a final year assignment, if I provide you with a vague description of what I need, will you make it for me ?" the answer is: NO | |
Re: this question is way to vague to provide a decent answer, but I'll try anyway. first of all: check whether or not you can actually use facebook. it may reach a lot of people, but that does come with a cost. if your business offers privacy to your clients: don't … | |
Re: it all depends on whether or not you want those likes to have actual value: if not: you can buy packages saying "xxx likes for xxx $" or something similar. so, for a while you'll be having tons of likes (comming out of the blue) so people 'll think that … | |
Re: what is not working? and, more interesting, what have you tried ? have you debugged ? have you checked whether the code you assumes runs, actually runs ? | |
Re: how is this `sum = 1 + 2;` working out for you ? what's the use of reading values if you're not going to use those ? | |
Re: that problem is caused here: public void getAccumulatorVariable() { for (int numberOfScores; numberOfScores > 0; JOptionPane.showInputDialog("Enter Score")) { accumulatorVariable += scoreVariable; button = new JButton("OK"); JOptionPane.add(button); button.addActionListener(this); button = new JButton("Cancel"); JOptionPane.add(button); button.addActionListener(this); } you forget to put a closing bracket for your for loop | |
Re: iampandiyan: this question was asked five years ago. chances are, that if the OP hasn't found the answer yet, he wasn't looking anymore. | |
Re: and why do you assume you need an arraylist for this ? just create instance variables. this might be an arraylist, but it might just as well be an array, depending on whether or not you know how many dogs alex has. if you don't know how to create instance … | |
Re: OtisGross: if nobody likes your posts, the first thing to reconsider is your posts. first point: likes are not necessary. either you stand by your posts, or you put more value on what other people think of it. what you should do to 'encourage' your facebook friends to like your … | |
Re: zolymo: for Java, that makes little sense. all mxwarning would have to do, to print it without a currency symbol, is to print it as String. mxwarning: what code of your prints $ ? | |
Re: zolymo: please, try not to provide custom made code. they won't learn anything this way. why should this thread be marked 'solved' ? because you posted your code ? | |
Re: just a small remark on that. Starting from java 7, `ArrayList<Person> persons = new ArrayList<Person>();` can be replaced by: `List<Person> person = new ArrayList<>();` also: don't forget String has a capital S. in your point to use a List to check the different dogs of an owner, I would recommend … |
The End.