79224666

Date: 2024-11-25 21:42:14
Score: 1.5
Natty:
Report link

The problem arises because switch statements in Java do not support double as a type for the expression being tested. Instead, you need to use an integer-compatible type (like int) for the switch expression.

Convert the score to an int before using it in the switch statement. Replace score with an integer division of score by 10.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: layan.3oth