I am getting these two errors.
Error: Could not find or load main class Dice
Build project error: cannot find symbol
My file is saved as Dice.java. I checked because that was one of my problems with my last program. As far as the symbol error I am not sure.
public class Dice{ <—class is Dice
public static void main(String[] args) {
// Welcome message.
System.out.println ("Welcome to The Dice Roller Game!");
// Roll the dice.
int die1, die2;
int rollcount;
rollcount = 0;
int wins = 0;
Scanner keyboard = new Scanner(System.in); <—-line 13 symbol error
This is just a portion of the source code.
Classes that are not in the
java.langpackage must be imported to be used:Read more about packages and imports in the Java tutorial.