Java Program to pass Value as command Line arguments - from netbeans

preview_player
Показать описание
Java Program to pass value as Command Line Arguments :
In this video I am going to show you how to run the command Line arguments program from netbeans. If you run such kind of program from netbeans you must have to customize some settings. #Easy
Source Code:
//program to calculate the square of a number from command Line arguments
//the Main purpose of command line argument is we can customize the behaviour of the main method
public class Square {
public static void main(String[] args) {
int n,s;
s=n*n;
}
}
Рекомендации по теме