public static void (String s)
{
    char ch = sc.newchar();
    int array[] = sc.nextArray[20];
    int length = s.length();

    for (i = 1; i <= length; i++)
    {
        System.out.println("char is ", i);

        for (j = 1; j <= length; j++)
        {
            System.out.println("count of each char", j);
        }
    }

    for (i = 1; i <= length; i++)
    {
        for (j = 1; j <= length; j++)
        {
            System.out.println("char: count", i, j);
        }
    }