PK s>4arrays/þÊPK ¨c=4ˆi;üüarrays/Student.javapackage arrays; public class Student { private String name; private int id; public Student(String name, int id) { this.name = name; this.id = id; } public String toString() { return "Name: " + name + ", Id: " + id; } } PK “e=4$áfà((arrays/Roster.javapackage arrays; public class Roster { private Student[][] allSections; public Roster(int[] studentsPerSection) { allSections = new Student[studentsPerSection.length][]; for (int section=0; section < allSections.length; section++) allSections[section] = new Student[studentsPerSection[section]]; } public void addStudent(int sectionNumber, String name, int id) { int position = 0, index=sectionNumber-1; while (allSections[index][position] != null && position < allSections[index].length) position++; allSections[index][position] = new Student(name, id); } public String toString() { String output=""; for (int section=0; section < allSections.length; section++) { output += "*** Section: " + (section + 1) + "\n"; for (int student=0; student 4miscellaneous/PK Eh=4ó¦Fµ µ miscellaneous/Computers.javapackage miscellaneous; import java.util.BitSet; public class Computers { private BitSet availableComputers, withWebAccess; private int numberOfComputers; public String toString() { String output = "Number of available computers: " + availableComputers.cardinality(); output += "\nIds of available computers: " + availableComputers; output += "\nNumber of computers with Web Access: " + withWebAccess.cardinality(); return output += "\nIds of computers with Web Access: " + withWebAccess; } public Computers(int numberOfComputers, int[] available, int[] webAccess) { this.numberOfComputers = numberOfComputers; // numberOfComputers + 1 as we don't use id 0 to identify computers availableComputers = new BitSet(numberOfComputers + 1); withWebAccess = new BitSet(numberOfComputers + 1); for (int i=0; i PK s>4¨1,ð}}.project lect4 org.eclipse.jdt.core.javabuilder org.eclipse.jdt.core.javanature PK s>4arrays/þÊPK ¨c=4ˆi;üü)arrays/Student.javaPK “e=4$áfà((Varrays/Roster.javaPK s>4®miscellaneous/PK Eh=4ó¦Fµ µ Úmiscellaneous/Computers.javaPK VH=4õ3Û@èè É.classpathPK s>4¨1,ð}}Ù.projectPK®|