So I've gotten help already with this program, but I can't seem to get it to print. I know I have to call the methods containing the println statements, but I'm not sure how to go about this. Below is my program. It is supposed to read a string, and then print out the letters in the string and how many times that letter appeared in the string. Then, at the end, it should print out the most frequent letter and how many times that letter appeared. Thanks in advance!

import java.util.*;
 
public class LetterDriver{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    String tScan= " ";
    while(tScan.length() > 0){
      tScan = scan.nextLine();
    }
  }
}
public class LetterProfile
{
  int scoreboard[] = new int [26];
  private int index;
  private int next;
  private int largest =0;
  private int largestindex =0;
 
 public void countChars (String s)
  {
    s.toLowerCase();
    char a = 'a';
    for (int i =0;i < s.length();i++)
    {
      int next = (int)s.charAt(i)-(int) a;
      if ( next<26 && next >= 0) //if the character is a-z
        scoreboard[next]++;
    }
 }
    public void scoreLine (String line)
    {
      int index = line.length();
      for (int j = 0; j<index; j++)
      {
        scoreboard[j]++;
        System.out.println(j + scoreboard[j]);
      }
    }
    public int largestLength()
    {
      int largest = 0;
      int largestindex = 0;
      for(int a = 0; a<26; a++)
      {
        if(scoreboard[a]>largest)
        largest = scoreboard[a];
        largestindex = a;
      }
      return(char)largestindex;
    }
    public int printResults()
    {
      largestLength();
     System.out.println(largestLength());
    }
 }