import java.util.
*;
class Student{
int rollno;
String name;
int age;
Student (int rollno ,String name , int age )
{
this.rollno = rollno;
this.name = name;
this.age = age;
}
}
class ArrayListPgm {
public static void main (String[] args){
Student s1 = new student (101,"arun",21);
Student s2 = new student (102,"arjun",25);y
Student s3 = new student (103,"amogh",23);
ArrayList<Student> al=new ArrayList<student>();
Iterator<student> itr=.itrator();
al.add(s1);
al.add(s2);
al.add(s3);
System.out.print(al);
itr=al.iterator();
while (itr.hasnext());
{
Student student= itr. next();
System.out.println (student.rollno + " " student.name +" " student.age );
}
}
}