Big difference between the two - while the code may 'work', stick to &&
Operators (The Java™ Tutorials > Learning the Java Language > Language Basics)
Type: Posts; User: copeg
Big difference between the two - while the code may 'work', stick to &&
Operators (The Java™ Tutorials > Learning the Java Language > Language Basics)
First, inspect the logic of those if statements to get the gradeA,B,etc...a value can never be less than/equal to 90 AND greater than/equal to 100. Second, inspect how count is incremented each time...