public class AddArgs { /* To add argv[1] and argv[2] as ints only in Java they are typically called args[0] and args[1] */ public static void main(String[] args) { System.out.println(new Integer(args[0]) + new Integer(args[1])); } }