Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Replies
    6
    Views
    2,075

    Re: Redefine Intergers

    Some comments on your code:
    if((int)(myRandom) == 1)
    You don't need to cast an int: if(myRandom == 1)

    You could use one Scanner here instead of 4:


    Scanner aScanner = new...
  2. Replies
    6
    Views
    2,075

    Re: Redefine Intergers

    Why do you want to define more than one variable with the same name?
    Could you give a new name to the variables where the compiler is complaining?

    Do you really want to define a new variable? Or...
  3. Replies
    6
    Views
    2,075

    Re: Redefine Intergers

    Please copy and paste the full text of the error message here.
Results 1 to 3 of 3