Question: Count the empty lockers. A high school has a specific number of lockers so students can store their belongings. The office staff wants to know

Count the empty lockers.
A high school has a specific number of lockers so students can store their belongings. The office staff wants to know how many of the lockers are empty so they can assign these lockers to new students. Consider the following classes and complete the implementation for the countEmptyLockers method.
public class Locker
{
private boolean inUse;
public boolean isInUse()
{ return inuse; }
public void setInUse(boolean isInUse)
{ inUse = is InUse;
 Count the empty lockers. A high school has a specific number

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!