Re: Java help
This was my old code
But then you changed it to this but you didn't add the die.roll() part and I was wondering where it went.
This was my old code
Code:
class DieRoll {
public static void main ( String [] args) {
String space;
space = " ";
Die die;
die = new Die();
die.roll();
System.out.println("Your Results are" + space + die.getRoll());
}
}
But then you changed it to this but you didn't add the die.roll() part and I was wondering where it went.
Code:
class DieRoll {
public static void main ( String [] args) {
Die die = new Die();
for(int i = 0; i < 3; i++)
System.out.println("Result: " + die.roll());
}
}












Comment