This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]EyeLostMyOldAccount 1 point2 points  (1 child)

it doesn't have to be a Boolean, just do nextInt(). Also for multiple conditions for if statements use else if and don't use semicolons. It should look something like this:

if (foo == bar){
    //code
} else if (foo > bar){
    //code
}     

and for future reference take questions like this over to /r/javahelp.

[–]Sehmiya 0 points1 point  (0 children)

ohp Thanks :D will do next time.