Unformatted text preview: numArray[count] = inputNumber; // put the number in the array count++; // count it inputNumber = in.nextInt(); // read next number } System.out.println ("There are " + count + " numbers in the array"); // How can we make this better??? for (int i = 0; i < numArray.length; i++) System.out.print(numArray[i] + " "); } }...
View Full Document
This note was uploaded on 06/07/2010 for the course CS 201 taught by Professor Staff during the Spring '08 term at Iona.
- Spring '08