So the code will compile but when i try to run the code i get this error.
public class Die
{
private int randomValue;
public Die()
{
randomValue = ((int)(Math.random() * 100)%6 + 1);
}
public int getValue()
{
return randomValue;
}
}
Any help would be greatly appreciated.
Error: Main method not found in class Die, please define the main method as: public static void main(String[] args) or a JavaFX application class must extend javafx.application.Application