Blog
Uncategorized
Create a class that can be used to test data structure
Create a class that can be used to test data structure – similar to the StudentA.java example found shown below: StudentA.java import java.util.Scanner; import java.util.ArrayList; class StudentA implements Comparable { static java.util.Random rn = new java.util.Random (); static ArrayList firstNames = new ArrayList (); static ArrayList lastNames = new ArrayList (); static SORTBY sortBy = SORTBY.LAST; static int nextUID = 1; String first, last; double gpa = 0; int credits = 0; int uid = 0;