Search:

Type: Posts; User: javapenguin

Search: Search took 0.12 seconds.

  1. Replies
    6
    Views
    2,948

    Re: need help w/ arithmatic program

    int num2 = rand2.nextInt(11);


    Ok, I think this should work, I hope.


    if (choice ==4)
    {

    while (num2 ==0)
  2. Replies
    6
    Views
    2,948

    Re: need help w/ arithmatic program

    Well, it's simple, if they get it right within one of the three tries, add 1 to the one correct
    else
    don't add 1 to the ones correct.

    Id recommend creating ten int values.


    int chances = 1;...
  3. Replies
    6
    Views
    2,948

    Re: need help w/ arithmatic program

    Ahhhh....I found choice.

    But you have another problem. A big problem.

    You're going to get an error called "NoSuchMethodError "main" "

    You don't have a main method.
  4. Replies
    6
    Views
    2,948

    Re: need help w/ arithmatic program

    I have a major project that i need a good grade on... here's the project and following is my code.
    My problem is that I am unable to make it try the question 3 times if it is answered wrong, and...
Results 1 to 4 of 4