import org.pureprogrammer.Utils; public class CmdLineArgs2 { public static void main(String[] args) { final int a = Utils.stoiWithDefault(args[0], 0); final int b = Utils.stoiWithDefault(args[1], 0); final int c = a + b; System.out.println(Utils.format("{0:d} + {1:d} = {2:d}", a, b, c)); } }