最初の System.out.println ステートメントを変更しましたが、まだ何も表示されません!!! 私が得る唯一のものはビルド成功ですが、ユーザー入力の出力はありません!!
//initializes the array to have a limit of 10 numbers inputted
double[] numbers = new double [10];
// this loop reads in the numbers inputed from the array
for (int i = 0; i < numbers.length; i++) {
numbers[i] = input.nextDouble();
}
System.out.println("Enter " + numbers.length + " values: ");
java.util.Arrays.sort(numbers);// this is the Array.sort()method
// this loop sorts the numbers and then prints them
for(double number : numbers){
System.out.println(number);
}
}
}