Ask your own question, for FREE!
Mathematics 8 Online
OpenStudy (anonymous):

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

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.

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!! :)

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.

OpenStudy (anonymous):

Well tomorrow. Imma go watch tv now.

OpenStudy (anonymous):

sounds good

OpenStudy (anonymous):

see yah around!

OpenStudy (anonymous):

Okay. Have a good night.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!