Program
import java.io.*;
import java.util.*;
class Student implements Comparable<Student>{
int rollno;
String name;
String address;
public Student(){
}
public Student(int a, String b, String c){
this.rollno=a;
this.name=b;
this.address=c;
}
public String toString(){
System.out.println("Rollno : " + rollno);
System.out.println("Name : " + name);
System.out.println("Name : " + address);
return("");
}
public void display(){
System.out.println("Rollno : " + rollno);
System.out.println("Name : " + name);
System.out.println("Address : " + address);
}