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

Which is true if-else statements? The if-else statement provides two blocks of code that will both be executed if its boolean expression is true. The if-else statement tries its expression again if its boolean expression is false The if-else statement is similar to the if statement in that it only executes code if its boolean expression is true The if-else statement provides a way to execute code in case its boolean expression is false I think it might be the third one.

OpenStudy (anonymous):

@ddubay28

OpenStudy (anonymous):

I have a question for you.

OpenStudy (anonymous):

yes?

OpenStudy (anonymous):

Why am i helping you if you know all of this anyways?

OpenStudy (anonymous):

I actually meant to say the fourth one but I accidentally typed third lol

OpenStudy (anonymous):

well then that TOTALLY changes every thing.

OpenStudy (anonymous):

By the way its the third one

OpenStudy (anonymous):

I don't really "know" this I'm just guessing at this using my prior knowledge from a completely different programming language. And I only have a week to do the rest of my Java class so I'm trying to cram it all in and it's nice to have a second opinion.

OpenStudy (anonymous):

well I'm glad I can help.

OpenStudy (anonymous):

You sure? I'm looking this http://www.tutorialspoint.com/java/java_decision_making.htm and it seems to me that it only executes the first code if the boolean is true but if it's false then it goes with the second line of code to execute.

OpenStudy (anonymous):

okay then choose that one I'm just telling you my personal opinion

OpenStudy (anonymous):

ok.

OpenStudy (anonymous):

Alright. :)

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!