Print which number is largest

01/01/2002 08:19

 

public class printinglargeorsmallnumbers
{
public static void main(String args[])
{
int n1=95;
int n2=95;
{
if(n1>n2)
System.out.println("1st is largest");
if(n2>n1)
System.out.println("2nd is largest");
if(n2==n1)
System.out.println("both are same");
}
}
}