I know i probably wrote it wrong, but i cant see what i did wrong so could someone please take a look at this and explain where i made the mistake?
public void randomNum() {
randOne = Integer.toString(random.nextInt(9));
randTwo = Integer.toString(random.nextInt(9));
randThree = Integer.toString(random.nextInt(9));
System.out.println("One: " + randOne + " Two: " + randTwo + " Three: " + randThree);
}
I call it when i click a button by using classname.randomNum();

New Topic/Question
Reply



MultiQuote




|