CommandLineArguments

PHOTO EMBED

Thu Dec 21 2023 14:06:35 GMT+0000 (Coordinated Universal Time)

Saved by @user01

import java.util.*;
class commands{
	public static void main(String[]args){
		int x = Integer.parseInt(args[0]);
		int y = Integer.parseInt(args[1]);
		int sum = x+y;
		System.out.println("The sum of x and y is "+sum);
	}
}	
content_copyCOPY