im making an arraylist of objects
and i need a searching algorithm to search that list and print out the each object within the element.. :(
public static void main(String[] args)throws IOException {
BufferedReader b =new BufferedReader(new InputStreamReader(System.in));
Student s1=new Student(new StudentName("Marjone", "P","Yecla"),19,new Course("BSIT"),new StudentChairLocation(0,1));
Student s2=new Student(new StudentName("Micheal", "j","Celeste"),17,new Course("BSCS"),new StudentChairLocation(0,2));
ArrayList<Student> aListStudents = new ArrayList<Student>();
aListStudents.add(s1);
aListStudents.add(s2);
System.out.println(aListStudents);


Sign In
Create Account


Back to top









