4,084 Posted Topics

Member Avatar for sel15

did you follow [these steps](http://eclipse.org/articles/Article-Your%20First%20Plug-in/YourFirstPlugin.html)?

Member Avatar for stultuske
0
135
Member Avatar for nipur23

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.

Member Avatar for stultuske
0
2K
Member Avatar for redtribal23

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 …

Member Avatar for Taywin
0
216
Member Avatar for KymDervy
Member Avatar for joshua_8
Member Avatar for divinity02

@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 …

Member Avatar for stultuske
0
314
Member Avatar for joshua_8
Member Avatar for mxwarning

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() + …

Member Avatar for stultuske
0
3K
Member Avatar for kazek

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 …

Member Avatar for stultuske
0
5K
Member Avatar for Reverse_1
Member Avatar for Heba_2

but, recompiling it, with " -deprecation " might give you more information. have you tried that ?

Member Avatar for JamesCherrill
0
114
Member Avatar for cherry05

"an error" ... that's a pretty vague description of what you are experiencing. think you can be a bit more specific?

Member Avatar for stultuske
0
71
Member Avatar for divinity02

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 …

Member Avatar for divinity02
0
118
Member Avatar for john jr

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).

Member Avatar for stultuske
0
116
Member Avatar for Trevor_4
Member Avatar for divinity02

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 …

Member Avatar for divinity02
0
134
Member Avatar for Search_not

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 …

Member Avatar for Slavi
0
155
Member Avatar for redtribal23

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.

Member Avatar for stultuske
0
566
Member Avatar for miladrahimi93

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.

Member Avatar for JamesCherrill
0
215
Member Avatar for surya55

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 …

Member Avatar for stultuske
0
172
Member Avatar for Jamalelyafi23

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 ?

Member Avatar for stultuske
-1
249
Member Avatar for awesomelemonade
Member Avatar for Slavi
1
2K
Member Avatar for Trevor_4

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 …

Member Avatar for diafol
-2
177
Member Avatar for Vardaan_1

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.

Member Avatar for stultuske
0
171
Member Avatar for lena1990

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 ?

Member Avatar for lena1990
0
278
Member Avatar for redtribal23

what exactly is not clear about these requirements? it's a step by step description of what you need to do.

Member Avatar for stultuske
0
204
Member Avatar for Samik_1

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 …

Member Avatar for stultuske
0
116
Member Avatar for divinity02

> 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

Member Avatar for stultuske
0
148
Member Avatar for Mallik_1

this part: > No such property [maxBackupIndex] is a dead give away. you are trying to use a non existing property

Member Avatar for stultuske
0
620
Member Avatar for heather_h56

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 …

Member Avatar for redtribal23
0
211
Member Avatar for q8girl24

> 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 …

Member Avatar for stultuske
-1
234
Member Avatar for moaz.amin.37

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 …

Member Avatar for moaz.amin.37
0
313
Member Avatar for syedmuaz.hassan.3

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, ...

Member Avatar for samson.dadson.3_1
-3
195
Member Avatar for silvercats

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 …

Member Avatar for samson.dadson.3_1
0
507
Member Avatar for PrimePackster

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 …

Member Avatar for slavica.k
-1
206
Member Avatar for DeepakBrian
Member Avatar for stultuske
0
67
Member Avatar for LittleBiscuitz
Member Avatar for zolymo
0
1K
Member Avatar for kayleigh0411

you never change the value of ticketPrice, so it will always return true when you test: `if (ticketPrice == 0.00 )`

Member Avatar for stultuske
0
163
Member Avatar for maryam_5

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

Member Avatar for jwenting
-3
91
Member Avatar for shammi.khan.73

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 …

Member Avatar for danielpeterson
0
210
Member Avatar for Mansoor Ahmed_1

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 …

Member Avatar for Base_1
-2
276
Member Avatar for moaz.amin.37

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 ?

Member Avatar for JamesCherrill
0
2K
Member Avatar for divinity02

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 ?

Member Avatar for Slavi
0
173
Member Avatar for kayleigh0411

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

Member Avatar for stultuske
0
187
Member Avatar for yingfo

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.

Member Avatar for stultuske
0
922
Member Avatar for chubbyy.putto

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 …

Member Avatar for Schol-R-LEA
0
352
Member Avatar for OtisGross

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 …

Member Avatar for JonnyP
0
206
Member Avatar for mxwarning

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 $ ?

Member Avatar for mxwarning
0
123
Member Avatar for Victoria_1

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 ?

Member Avatar for stultuske
0
256
Member Avatar for chubbyy.putto

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 …

Member Avatar for zolymo
0
211

The End.