Jump to content

an IO that accepts string...

- - - - -

  • Please log in to reply
1 reply to this topic

#1
Animus

Animus

    Newbie

  • Members
  • PipPip
  • 26 posts
Is there such?
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");


#2
fread

fread

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 787 posts
What happend to other thread animus. You would get plenty help with that one. No need for some much threads on the same problem/program.
Perfection of means and confusion of ends seem to characterize our age. Albert Einstein :confused:




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users