Okay, I fixed it. My only problem is that the number on the die don't change each time it is re-executed. The "Roll" changes, but that's about it. Any suggestions?
package dieroll;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
System.out.println("Welcome to Anthony's Die Roll application!");
int i;
int number_of_plays = 1;
Scanner input = new Scanner(System.in);
System.out.print("Do you want to roll the die? (1 = yes, 2 = no): ");
int accept = input.nextInt();
while (accept == 1) {
int die1 = (int)(Math.random() * 6);
int die2 = (int)(Math.random() * 6);
if (die1 == 0 || die2 == 0)
die1 = (die1 + 1);
die2 = (die2 + 1);
for (i = 1; i < 1000; i++){
number_of_plays = i;
System.out.println("Roll " + number_of_plays + ":" + " " + die1 + " " + die2);
if (die1 == 1 && die2 == 1){
System.out.println("Snake eyes!");
if (die1 == 6 && die2 == 6);
System.out.println("Box cars!");
if (die1 == 2 && die2 == 5)
System.out.println("Craps!"); }
else
System.out.println("Do you want to roll again? (1 = yes, 2 = no): ");
accept = input.nextInt();
}
while (accept != 1) {
System.out.println("Thanks for playing!");
System.exit(0);
}
}
}
}