Program
import java.io.*;
class Student {
String name;
int age;
String address;
int rollno;
InputStreamReader r=new InputStreamReader(System.in);
BufferedReader br=new BufferedReader(r);
/*
public Student(int size) {
Student[] s=new Student[size];
}
*/
public void addStudent() throws Exception {
System.out.print("Name : ");
this.name=br.readLine();
System.out.print("Age : ");
this.age=Integer.parseInt(br.readLine());
System.out.print("Address : ");
this.address=br.readLine();
System.out.print("Rollno : ");
this.rollno=Integer.parseInt(br.readLine());
}