Vote count:
0
if (eyeColor == green)
{
System.out.println ("If your eyes are green I recommend buying .... ");
....
}
error says "variable green might not have been initialized"
I can't display my whole code since it is for school, but I am just wondering how can I initialized it if the eyeColor from the user input (using scanner) is green?
asked 1 min ago
Aucun commentaire:
Enregistrer un commentaire