public Student GetWithId(int StudentNum){
        Collections.sort(listofsets, Student.Comparators.STUDENT_NUMBER);
        
        int front = 0;
        int end = listofsets.size()-1;
        
        while(true){
            
            int middle = (end-front)/2;
            middle += front;
            
            Student temp = listofsets.get(middle);
            
            if(StudentNum == temp.StudentNumber){
                return temp;
            }
            /*
            if(middle == front && middle == end && StudentNum != temp.StudentNumber){
                System.out.println("That record does not exist!");
                return null;
            }*/
            else if (StudentNum > temp.StudentNumber){
                front = middle+1;
            }else if (StudentNum < temp.StudentNumber){
                end = middle-1;
            }
            
            if(end < front){
                System.out.println("That record does not exist!");
                return null;
            }
        }
    }