In java Program the main class name has to be same to the program name.
The main method have to be declared as public static void main(String args[])
It is another Command line argument(cla.) program where
5 cla are added and their result is displayed.
To covert cla into integers we have to use
int i = Integer.parseInt(args[i]).
We can take array in java using int a[]= new int[5];
Link to this comment:
All Comments (0)