PDA

View Full Version : Java (Parsing)


Godson21
Mar 24, 2012, 12:17 AM
Hey, Thanks in advance, I want to write a Guess the number game as independently as possible but I need to parse and compare a random generated number and an Int Help!
"Random Ran = new Random();

System.out.println("A Number Has been Generated");

System.out.println("Guess what it is... ");

int a = System.in.read();

while ( Ran != a)"