Na przykład coś takiego dla dwóch argumentów:
public class ArgumentInput {
public static void main(String[] args) {
try{
System.out.println(args[0]);
System.out.println(args[1]);
}
catch (Exception Ex) {
System.out.println("Nie podano wszystkich argumentow!");
}
}
}
Jeśli chcesz konkretnie liczbę mieć, to po prostu skorzystaj z:
int x = Integer.parseInt(args[0]);
Pozdrawiam,