Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.11 seconds.

  1. Replies
    37
    Views
    2,750

    Re: If Then Statement Question!

    Take a step back. Write a simple test program that lets you play with if/else statements. Feed in hard-coded booleans, like the example aussiemcgr already posted.
  2. Replies
    37
    Views
    2,750

    Re: If Then Statement Question!

    What red bar?
  3. Replies
    37
    Views
    2,750

    Re: If Then Statement Question!

    What have you tried?
  4. Replies
    37
    Views
    2,750

    Re: If Then Statement Question!

    Yes, it does.

    Did you check out the keyword I told you about? What did you try with it?

    In fact, you can do it without that keyword, using only the logic you demonstrated in your original post....
  5. Replies
    37
    Views
    2,750

    Re: If Then Statement Question!

    Check out the else keyword: The if-then and if-then-else Statements (The Java™ Tutorials > Learning the Java Language > Language Basics)
Results 1 to 5 of 5