// Another Sum Java class, this one creates an object of class Sum1 // // This sample reads a bunch of integers entered as command line arguments // sums them up and prints the sum and average. public class Sum1 { public static void main( String args[] ) { //Create a Sum1 object Sum1 s = new Sum1(args); } // constructor Sum1(String nums[]) { // create an int array of the right size int[] ivals = new int[nums.length]; // convert each string to integer for (int i=0;i