you see im trying to print out objects putted within a list. but before that i need to find a way to
input a keyword
then
search the list
print out all the objects of that element.
which kinda hard to do on my level.
whenever i use Buffredreader its incompatible with arraylist
also i dont know the reader to get string.
so im pretty helpless. ~_~
public static void main(String[] args)throws IOException {
BufferedReader awt = BufferedReader(new InputStreamReader(System.in));
int key;
Student s1=new Student(new StudentName("Marjone", "P","Yecla"),19,new Course("BSCS","BSIT","ACT"),new StudentChairLocation(0,1));
Student s2=new Student(new StudentName("Micheal", "j","Celeste"),17,new Course("BSCS","BSIT","ACT"),new StudentChairLocation(0,2));
ArrayList<Student> aListStudents = new ArrayList<Student>();
aListStudents.add(s1);
aListStudents.add(s2);
System.out.println("Enter name");


Sign In
Create Account


Back to top









