Search:

Type: Posts; User: ak120691

Search: Search took 0.12 seconds.

  1. Replies
    6
    Views
    2,242

    Re: Nested-If Problem/ Initializing

    ... I love you lol. Thank you so much!!!
  2. Replies
    6
    Views
    2,242

    Re: Nested-If Problem/ Initializing

    bash-2.05$ javac MaxOfThree.java
    MaxOfThree.java:98: variable max might not have been initialized
    System.out.println("Maximum of Three integers " + i + ", " + j + ", " + k + " is " + max);

    That...
  3. Replies
    6
    Views
    2,242

    Re: Nested-If Problem/ Initializing

    I understand that. What confuses me is how to compare three variables without using the && and || operators.


    I have never coded for 3 variables. Comparing 2 is simple. When it hits 3 you have...
  4. Replies
    6
    Views
    2,242

    Nested-If Problem/ Initializing

    So basically my code works (or at least I'm pretty sure it does). I removed the last if/else statements and it all runs. However when I put it in I get a "max" may not have been initialized.

    Could...
Results 1 to 4 of 4