Question 6:What is an accessor method?What is a mutator method?
答案参考:
Number Analysis Class(西交利物浦大学Java代写)
Write a class with a constructor that accepts a file name as its argument. The file contains a
series of numbers, one on each line. The class should read the contents of the file into an array;it should also include methods to calculate:The lowest number in the arrayThe highest number in the arrayThe total of the numbers in the arrayThe average of the numbers in the arrayThe standard deviation of the numbers in the array