並前往https://www.alphabetacoder.com/2022/08/java-program-to-calculate-sum-and-average-of-n-numbers-with-or-without-array.html