This question already has an answer here:
I'm new to java and I need to create a program that generates random numbers as dice rolls. I'm trying to use this:
static Random randGen = new Random();
But I keep getting an error message that says "error: illegal start of expression" pointing to "static". Any suggestions?
Aucun commentaire:
Enregistrer un commentaire