import [Link].
*;
class Student{
int rollno;
String name;
int age;
Student (int rollno ,String name , int age )
{
[Link] = rollno;
[Link] = name;
[Link] = 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();
[Link](s1);
[Link](s2);
[Link](s3);
[Link](al);
itr=[Link]();
while ([Link]());
{
Student student= itr. next();
[Link] ([Link] + " " [Link] +" " [Link] );
}
}
}