Click here to Skip to main content
16,011,685 members
Home / Discussions / Java
   

Java

 
GeneralRe: JPanel Field day issues Pin
427748025-Oct-09 0:10
427748025-Oct-09 0:10 
GeneralRe: JPanel Field day issues Pin
shawndeprey25-Oct-09 4:18
shawndeprey25-Oct-09 4:18 
Questionview page source (of a webpage) Pin
sharkbc22-Oct-09 17:56
sharkbc22-Oct-09 17:56 
AnswerRe: view page source (of a webpage) Pin
427748024-Oct-09 0:58
427748024-Oct-09 0:58 
QuestionWrite a java applet to multiply 2 numbers Pin
Shah Ravi22-Oct-09 17:54
Shah Ravi22-Oct-09 17:54 
AnswerRe: Write a java applet to multiply 2 numbers Pin
Shah Ravi22-Oct-09 18:50
Shah Ravi22-Oct-09 18:50 
AnswerRe: Write a java applet to multiply 2 numbers Pin
Richard MacCutchan23-Oct-09 4:05
mveRichard MacCutchan23-Oct-09 4:05 
AnswerRe: Write a java applet to multiply 2 numbers Pin
shawndeprey23-Oct-09 4:51
shawndeprey23-Oct-09 4:51 
One thing I notice is that there is no loop in your code when there should be. Otherwise the program will not repeat its processes. Also, I do not see where your enum places the string "right", and "wrong", in the variables of the enum. I would suggest just using simple string values for this, it would be much simpler.

Also to simplify things, I would put brackets everywhere they can be so you can see where one process begins, and another ends.

Your logic seems fine, it just needs a loop, I would suggest a while loop. Say, until the user enters a certain word or number, continue with the loop. When they do enter it, end the program.

As far as I can see that is all you need to do for this program. Tell me if this helps.
GeneralRe: Write a java applet to multiply 2 numbers Pin
Richard MacCutchan23-Oct-09 5:23
mveRichard MacCutchan23-Oct-09 5:23 
GeneralRe: Write a java applet to multiply 2 numbers Pin
shawndeprey23-Oct-09 16:17
shawndeprey23-Oct-09 16:17 
GeneralRe: Write a java applet to multiply 2 numbers Pin
David Skelly23-Oct-09 6:44
David Skelly23-Oct-09 6:44 
GeneralRe: Write a java applet to multiply 2 numbers Pin
Richard MacCutchan23-Oct-09 6:55
mveRichard MacCutchan23-Oct-09 6:55 
AnswerRe: Write a java applet to multiply 2 numbers Pin
427748024-Oct-09 1:02
427748024-Oct-09 1:02 
Question[Message Deleted] Pin
teknozwizard21-Oct-09 21:03
teknozwizard21-Oct-09 21:03 
AnswerRe: Trouble With Rotating Script Pin
David Skelly21-Oct-09 22:09
David Skelly21-Oct-09 22:09 
Questionsimple chat Pin
ammu2321-Oct-09 18:27
ammu2321-Oct-09 18:27 
AnswerRe: simple chat Pin
Richard MacCutchan21-Oct-09 23:23
mveRichard MacCutchan21-Oct-09 23:23 
GeneralGoogle Sitebricks demo with db4o Pin
netquake21-Oct-09 3:03
netquake21-Oct-09 3:03 
GeneralRe: Google Sitebricks demo with db4o Pin
Eddy Vluggen21-Oct-09 4:27
professionalEddy Vluggen21-Oct-09 4:27 
Questionreturn back to my application. Pin
sangeethanarayan21-Oct-09 3:00
sangeethanarayan21-Oct-09 3:00 
AnswerRe: return back to my application. Pin
Richard MacCutchan21-Oct-09 5:44
mveRichard MacCutchan21-Oct-09 5:44 
AnswerRe: return back to my application. Pin
427748024-Oct-09 1:06
427748024-Oct-09 1:06 
QuestionJava Events Pin
ammu2320-Oct-09 20:13
ammu2320-Oct-09 20:13 
AnswerRe: Java Events Pin
Nuri Ismail20-Oct-09 23:37
Nuri Ismail20-Oct-09 23:37 
Questionjava applet Pin
ammu2320-Oct-09 20:09
ammu2320-Oct-09 20:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.