Hello guys,
i am totally new to java.How do i check INT range for switch case: ?
int grade = 68; switch (grade) { case 100: System. out.println( "You got an A. Great job!" ); break; case 80: System. out.println( "You got a B. Good work!"); break; case ("60-79"): System. out.println( "You got a C. What went wrong?" ); break; default: System. out.println( "You got an F. You’ll do well in Congress!" ); } } }