Search:

Type: Posts; User: Gizken

Search: Search took 0.21 seconds.

  1. Replies
    19
    Views
    711

    Re: Problem with running random class

    I have edited my original program but still having problems with the random method, it is choosoing its own numbers instead of the numbers I assigned to tthe colours, any hints on how I can fix this?
  2. Replies
    19
    Views
    711

    Re: Problem with running random class

    I have done debugging and worked out whats going wrong:

    player1Total = sc.nextInt();

    This is where my program stops, but when I remove it, I get error message : variable player1Total might not...
  3. Replies
    19
    Views
    711

    Re: Problem with running random class

    I have edited code in first post with changes I have made. I wil try the debugging you have suggested, thanks
  4. Replies
    19
    Views
    711

    Re: Problem with running random class

    I have rewritten my program it compiles, but it is not entering into the while loop??? any suggestions???
  5. Replies
    19
    Views
    711

    Re: Problem with running random class

    I have a while loop inside the do loop, is this wrong?
  6. Replies
    19
    Views
    711

    Re: Problem with running random class

    Here are the compiler errors:
    --------------------Configuration: <Default>--------------------
    :305: while expected
    }
    ^
    :307: illegal start of expression
    }
    ^
    :307: ')' expected
    }
  7. Replies
    19
    Views
    711

    Re: Problem with running random class

    Hi Norm, it is a game played by two players that state how many innings they want to play. It then should alternate between the two players, within each innings, random cars and non cars of...
  8. Replies
    19
    Views
    711

    Problem with running random class

    My program complies and runs, but the random method is selecting randoms numbers instead of the numbers I assigned the colours? Any hints on hoe I can fix this??




    import java.util.*;
    import...
  9. Replies
    1
    Views
    448

    Probmen with randon class in program

    Hi I am writing a program for a car cricket game. I can get the innings and players name ok, but when the program needs to randomly choose vehicles and colours, nothing appears in output. I think...
Results 1 to 9 of 9