I need to simplify the letter count and add scaling to the word bar char a i have the array set to 12 but it needs to read a file and then produce the amount of frequency and length in that particular file
import java.io.*;
import java.util.*;
class WordCount
{
public static void main(String[] args) throws IOException
{
FileReader file = new FileReader("new.txt");
BufferedReader MyFile = new BufferedReader(file);
StringTokenizer TokenizeMe= new StringTokenizer("");
int NumberOfTokens = 0;
int NumberOfWords = 0;
char barchart = '#';
char[] letters = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J','K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'};
int frequency [] = new int [12];
// frequency [] stores number of words of length
int a;
String line="";
while((line=MyFile.readLine())!=null)
{
System.out.println("Processing line="+