I have a class that contains two arraylists- student names and Ids
I want to put them into LinkedHashSet( so, I can sort, delete, add and edit e student profile);
I created a class called Student that contains setName getName setId getId and toString methods.
now, I try to do something like
LinkedHashSet<Student> list=new LinkedHashSet<Student>();
for(String i:Array.studentName){
for(int j:Array.studentId){
student(i,j);// for loop seems doesn't work here. the student name repeats and repeats
list.add(student);
I don't know if I am on the track or not. any suggestion? Thanks