Changes

Jump to: navigation, search
no edit summary
if(search.length() == 0){
displayData(studentList);
} else { search = ".*" + search + ".*"; Vector<Student> studentListCopy= (Vector<Student>)studentList.clone(); for(int i = 0; i < studentListCopy.size();i++){
if Vector<Student> searchResults=new Vector<Student>(!studentListCopy.elementAt); for(Student i:studentList).getFirstname().toLowerCase().matches(search.toLowerCase())){ if(!studentListCopy.elementAt(i).getLastNamegetName().toLowerCase().matchescontains(search.toLowerCase())) { studentListCopy searchResults.removeadd(i); }
}
} displayData(studentListCopysearchResults);
}
}
1
edit

Navigation menu