Search:

Type: Posts; User: ak120691

Search: Search took 0.45 seconds.

  1. Replies
    1
    Views
    289

    While loop problem

    I have to make a program that generates 2 random numbers and awards money if certain numbers come out (2 of the same = 3.00, 2 even numbers that aren't the same will give 50 cents, and 2 different...
  2. Replies
    6
    Views
    1,093

    Re: Nested-If Problem/ Initializing

    ... I love you lol. Thank you so much!!!
  3. Replies
    6
    Views
    1,093

    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...
  4. Replies
    6
    Views
    1,093

    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...
  5. Replies
    6
    Views
    1,093

    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 5 of 5