class AR{
void area(int x,int y)
{
System.out.println("Area="+(x*y));
}
}
public class main{
public static void main(String args[])
{
int x=Integer.parseInt(args[0]);
int y=Integer.parseInt(args[1]);
AR ob=new AR();
ob.area(x,y);
}
}
void area(int x,int y)
{
System.out.println("Area="+(x*y));
}
}
public class main{
public static void main(String args[])
{
int x=Integer.parseInt(args[0]);
int y=Integer.parseInt(args[1]);
AR ob=new AR();
ob.area(x,y);
}
}
No comments:
Post a Comment