Java Program 08 - Use of Command Line Arguments - Study Viral
//Java Program - 08 - //Write a program to show the use command line arguments. class StudyViral_08{ public static void main(String []args){ System.out.println(args[0]); System.out.println(args[1]); System.out.println(args[0]+args[1]); int a1 = Integer.parseInt(args[0]); int b1 = Integer.parseInt(args[1]); System.out.println("Sum :: "+(a1+b1)); } }
0 comments:
Post a Comment