How to write my Java program with the ACM library (ConsoleProgram)?
问题 I want ask a little question about my program. This is my code sample: public static void main(String[] args) { int q; int p; int thelargest; int thesmallest; Scanner input = new Scanner(System.in); System.out.println("Enter the list of number : "); String input2 = input.nextLine(); String[] numbers = input2.split(" "); int[] result = new int[numbers.length]; for (p = 0; p < numbers.length; p++) { result[p] = Integer.parseInt(numbers[p]); } for (q = 0; q < result.length; q++) { System.out