Search:

Type: Posts; User: Norm

Search: Search took 0.17 seconds.

  1. Thread: Java If Statement

    by Norm
    Replies
    9
    Views
    1,547

    Re: Java If Statement

    Glad you got it working.
  2. Thread: Java If Statement

    by Norm
    Replies
    9
    Views
    1,547

    Re: Java If Statement

    Does it compile, execute and do what you want? Then you've solved that problem.

    One thing you will want to do some time is test the that the contents of text6 is valid.
    You'll see how to do that...
  3. Thread: Java If Statement

    by Norm
    Replies
    9
    Views
    1,547

    Re: Java If Statement

    if(<a boolean expression>) {
    // do this if true
    } // end if()

    <a boolean expression> should be a boolean expression that evaluates to true or false.

    Your text book should have examples of...
  4. Thread: Java If Statement

    by Norm
    Replies
    9
    Views
    1,547

    Re: Java If Statement

    Look at the choice of operators that you can use to compare two numbers.
    == is one
    < is one
    What are the other choices?
    Do any of them sound like they would do what you want.
    ==< is NOT a valid...
  5. Thread: Java If Statement

    by Norm
    Replies
    9
    Views
    1,547

    Re: Java If Statement

    Where is your code to test the contents of text6?
    You will need to get the contents of the textfield and convert it to an int value to be able to compare it to 40.
    See the Integer class for a...
Results 1 to 5 of 5