if x is an int variable which of the following contains invalid Java code?
if (x < 5) x++;
if (x < 5) { x++; }
if x < 5 x++;
if (x < 5) if (x > 0) x++;
I be guessing number 3
Still Need Help?
Join the QuestionCove community and study together with friends!
Sign Up
OpenStudy (anonymous):
@ddubay28
OpenStudy (anonymous):
Your wrong.
OpenStudy (anonymous):
I am? why am I wrong?
OpenStudy (anonymous):
Your not. :P
OpenStudy (anonymous):
Your right i was just messing with you. If I'm gonna talk to you for this long then i gotta mess with you a little bit.
Still Need Help?
Join the QuestionCove community and study together with friends!
Sign Up
OpenStudy (anonymous):
I see.
OpenStudy (anonymous):
Sorry. :)
OpenStudy (anonymous):
yay 10 out of 10 c: the only one you got wrong was the previous question with the If-Else statement. I went with my gut on that one :P
OpenStudy (anonymous):
That's what i always do. Unless I know for a fact that I am wrong.
OpenStudy (anonymous):
And that's awesome!! :)
Still Need Help?
Join the QuestionCove community and study together with friends!
Sign Up
OpenStudy (anonymous):
oki well that's all the help I needed. if you're on later tonight or tomorrow I might be back for more.