0
Error: Expected ‘)’
if (bazGP > 10,957.00 || bazGP = 10,957.00) System.out.println ("Income Class: Poor"); else if (bazGP >= 10,957.00 && bazGP <= 21,914.00) System.out.println ("Income Class: Low Income"); else if (bazGP >= 21,914.00 && bazGP <= 43,828.00) System.out.println ("Income Class: Lower Middle"); else if (bazGP >= 43,828.00 && bazGP <= 76,669.00) System.out.println ("Income Class: Middle Income"); else if (bazGP >= 76,669.00 && bazGP <= 131,484.00) System.out.println ("Income Class: Upper Middle"); else if (bazGP >= 131,484.00 && bazGP <= 219,140) System.out.println ("Upper But Not Rich"); else System.out.println ("Rich");
5 ответов
+ 7
you are not allowed to type comma as thousand separator in numbers ;)
+ 2
get underscore works great for identifiers, but not inside number literals ^^
+ 2
that's true for almost every languages ;)
identifiers = variables/functions/... names
+ 1
Oh, thanks. Accidentally garbled the programming languages.
And... Identifiers = variables etc.?