class sorting extends basic { public static int[] numbers = new int [1000]; // An array of numbers public static void main (String param[]) throws Exception { input keyboard = new input(); output screen = new output(); int n = 0; // n = how many numbers there are n = ReadNumbers(numbers, keyboard, screen); // Read some numbers and return their count Sort(numbers, n); // Sort the number Display(numbers, n, screen); // Display the sorted array } static int ReadNumbers(int[] A, input keyboard, output screen) throws Exception { // read a series of numbers, count them, and store them in an array int count = 0; screen.writeln("Enter a series of numbers followed by 0:"); int x = keyboard.readint(); while (x!=0) { count = count + 1; A[count] = x; x = keyboard.readint(); } return count; } static void Sort (int[] A, int size) { // Sort an array of size numbers int i, j; for (i=1; i