K
K
Why does my boolean statement have an error message next to it in eclipse?
public class boolean1 {
public static void main(String[] args) {
int gumballs;
int kids;
int gumballsPerKid;
boolean eachKidGetsTen;
gumballs = 140;
kids = 15;
gumballsPerKid = gumballs / kids;
System.out.print("True of False? ");
System.out.println("Each kid gets 10 gumballs");
eachKidGetsTen = gumballsPerKid >= 10;
System.out.println("eachKidGetsTen");
}
}
public class boolean1 {
public static void main(String[] args) {
int gumballs;
int kids;
int gumballsPerKid;
boolean eachKidGetsTen;
gumballs = 140;
kids = 15;
gumballsPerKid = gumballs / kids;
System.out.print("True of False? ");
System.out.println("Each kid gets 10 gumballs");
eachKidGetsTen = gumballsPerKid >= 10;
System.out.println("eachKidGetsTen");
}
}