An input file A1.txt is given which contains a list of integer values. Write a program that reads all the values from A1.txt and save them into an array. Prompt the user for an integer number and count the frequency of that number within that array. Sample input: 51 27 44 50 99 74 58 28 62 84 45 75 71 97 71 Enter the number you want to search: 71 Sample Output: 71 appeared 2 times Solution import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.util.Scanner; public class CountFrequency { public static void main(String[] args) throws NumberFormatException, IOException{ Scanner scanner; Scanner sc; int [] tall = new int[20]; try { scanner = new Scanner(new File(\"A1.txt\")); sc = new Scanner(System.in); int i = 0; tall = new int [20]; while(scanner.hasNextInt()) { tall[i++] = scanner.nextInt(); } i=0; System.out.println(\"Enter the number you want to search:\"); int searchnumber= sc.nextInt(); int count=0; for(i=0;i<15;i++){ if(tall[i]==searchnumber){ count++; i++; }else i++; } System.out.println(searchnumber+\" appeared \"+count+\" times.\"); } catch (FileNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } .