package test; public class Calculate { public static void main(String[] args) { int total = 0; for (String number : args) { total = Integer.valueOf(number) + total; } System.out.println("You're total is " + total); } }