public class School { private int id; private int capacity; public School(int id, int capacity) { this.id = id; this.capacity = capacity; } public int getCapacity() { return capacity; } public int getID() { return id; } public String toString() { return String.format("S(%d|%d)", id, capacity); } }