Its supposed to count the number of each letter in a string but all it returns is 0. I've been experimenting with it but I can't get it to work. Everything seems right. Can anyone help me with this? Thanks for your timepublic class AlphaCounter{ public static void main (String args[]) { String enterLine, line; int lineNum, numLines; int numLetter; int numVowel; int i; numLines=1; int letterAp=0;

System.out.println("Enter lines of text. Enter an empty line to end."); do { line=SavitchIn.readLine(); if (!(line.equals(""))) numLines++; } while(!(line.equals(""))); System.out.println("Number of lines: "+(numLines-1)); System.out.println("Letters not present: "); numLetter=line.length(); line = line.toUpperCase();