Question: Revise the preceding exercise so that the findScore method returns 1 if permission is false. Add an another method named getPermission(String name) that returns 1,

Revise the preceding exercise so that the findScore method returns –1 if permission is false. Add an another method named getPermission(String name) that returns 1, 0, or –1. The method returns 1 if the student is in the Scores table and permission is true, 0 if the student is in the Scores table and permission is false, and –1 if the student is not in the Scores table.

Step by Step Solution

3.30 Rating (179 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here is an example of how the revised findScore and getPermission methods could be implemented publi... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Introduction to Java Programming and Data Structure Questions!