1. Engineering
  2. Computer Science
  3. write a program named reviewjava and implement the following two...

Question: write a program named reviewjava and implement the following two...

Question details

Write a program named Review.java and implement the following two methods:

public static int NumberOfElementsLessThanAverage(int[] arr) that returns the number of elements that are less than the average of all elements of the array.

public static int[] countChars(File file), this method reads data from a file and counts the frequency of each alphabetic letters, and returns those numbers as an int array.

the data file name is "data.txt"

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution