[Solved] Cast a special java object to an integer [closed]


You should have at least one attribute in your Grades class.
You cant cast Grade to Integer.
Calculate grades in your main/test or other class via get method.

solved Cast a special java object to an integer [closed]