1.Passing arg. to app - MahmoudKhalid02019/First-session-task GitHub Wiki
Welcome to the First-session-task wiki! // 1.Passing arg. to app public class Square {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
int n,s;
n=Integer.parseInt(args[0]); //convert string to to int
s=n*n;
System.out.println("the square of "+n+" is "+s);
}
}