Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Learning Java: Part 2: If Statements

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,445
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 17, 2011

In this tutorial I will teach you how to use if statements to further enhance your java applictation.

Download Eclipse: http://www.eclipse.org/
Download Java: http://www.java.com/en/

Thanks for watching!
http://brandonsoft.com

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (BrandonioProductions)

  • I have a question

    I made a question like thingy and am wondering how to get the else part to go back to the question

    like if they didn't put anything in when the answered my question or they didn't put one of the choices. I want it to go back to the question without continuing

  • @andavies123 You can simply call the main again, or create a seperate method for each question. See part 4 for more details!

  • @BrandonioProductions or create a recursive function following an index to grab the questions from an array ^^

  • @nmbpeterv Oh, good call.

see all

All Comments (10)

Sign In or Sign Up now to post a comment!
  • lol HAVE A GREAT DAY

  • @nmbpeterv let me correct that :o if { ... code executed if the statement is true } else { ... code executed if the statement is false }

  • @2112mbell The { and } are used to define an enclosed block of code. For example to follow the line of this tutorial you could say that if { ... code executed if the statement is true } else { ... code executed if the statement is true }. If the { and } are not placed ^^ there is no way of knowing where a certain statement ends.

  • Why does it seem like the {} are needed in random spots to me. I just dont understand what they do

  • 2nd comment:D

  • yayaaya good

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more