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?
Type: Posts; User: Gizken
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?
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...
I have edited code in first post with changes I have made. I wil try the debugging you have suggested, thanks
I have rewritten my program it compiles, but it is not entering into the while loop??? any suggestions???
I have a while loop inside the do loop, is this wrong?
Here are the compiler errors:
--------------------Configuration: <Default>--------------------
:305: while expected
}
^
:307: illegal start of expression
}
^
:307: ')' expected
}
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...
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...