public void printTotals() {  
            //  -- Totals --
        System.out.println("  == Totals for individual elements ==");
        System.out.println();

        // Codon totals
        System.out.println("  --  Total numbers of each codon composition --");
        System.out.println("| - |  -AA  |  -AC  |  -AG  |  -AT  |  -CA  |  -CC  |  -CG  |  -CT  |  -GA  |  -GC  |  -GG  |  -GT  |  -TA  |  -TC  |  -TG  |  -TT  |");
        System.out.print("| A |");
        for (int i = 0; i < 16; i ++) {
            System.out.print(String.format(" %5d |", codonTotal[i])); }
        System.out.println();
        System.out.print("| C |");
        for (int i = 16; i < 32; i ++) {
            System.out.print(String.format(" %5d |", codonTotal[i])); }
        System.out.println();
        System.out.print("| G |");
        for (int i = 32; i < 48; i ++) {
            System.out.print(String.format(" %5d |", codonTotal[i])); }
        System.out.println();
        System.out.print("| T |");
        for (int i = 48; i < 64; i ++) {
            System.out.print(String.format(" %5d |", codonTotal[i])); }
        System.out.println();
        System.out.println();
        
        // Amino Acid Totals
        System.out.println("  --  Total numbers of each amino acid --");
        System.out.print("|  Lys  |  Asp  |  Thr  |  Arg  |  Ser  |  Iso  |  Met  |  Glu  |\n|");
        for (int i = 0; i < 8; i ++) {
            System.out.print(String.format(" %5d |", aaTotal[i])); }
        System.out.println();
        System.out.print("|  His  |  Pro  |  Leu  | G'ate | A'ate |  Ala  |  Gly  |  Val  |\n|");
        for (int i = 8; i < 16; i ++) {
            System.out.print(String.format(" %5d |", aaTotal[i])); }
        System.out.println();

        System.out.print("|  och  |  Tyr  |  amb  |  opa  |  Cys  |  Try  |  Phe  |\n|");
        for (int i = 16; i < 23; i ++) {
            System.out.print(String.format(" %5d |", aaTotal[i])); }
        System.out.println();
        System.out.println();
        
        // Class Totals
        System.out.println("  --  Total numbers of each Class --");
        System.out.println("| Aliphatic |  Hydroxyl |  Cyclic  | Aromatic |  Basic  |  Acidic  | stop codon |");
        System.out.print(String.format("| %9d |", classTotal[0]));
        System.out.print(String.format(" %9d |", classTotal[1]));
        System.out.print(String.format(" %8d |", classTotal[2]));
        System.out.print(String.format(" %8d |", classTotal[3]));
        System.out.print(String.format(" %7d |", classTotal[4]));
        System.out.print(String.format(" %8d |", + classTotal[5]));
        System.out.println(String.format(" %10d |", + classTotal[6]));
        System.out.println();
        System.out.println();
        
        // Polarity Totals
        System.out.println("  --  Total numbers of each Polarity --");
        System.out.println("| Non-polar |  Polar  |  Basic  |  Acidic  | stop codon |");
        System.out.print(String.format("| %9d |", polTotal[0]));
        System.out.print(String.format(" %7d |", polTotal[1]));
        System.out.print(String.format(" %7d |", polTotal[2]));
        System.out.print(String.format(" %8d |", polTotal[3]));
        System.out.println(String.format(" %10d |", polTotal[4]));
        System.out.println();
        System.out.println();
        
        // -- Repeats/Runs --
        System.out.println("  == Runs of elements ==");
        System.out.println();
        
        // Nucleotide repeat run
        System.out.println(" -- Runs of repeat nucelotides --");
        runsPrint(nucRunNo);
        
        // Nucleotide forward run
        System.out.println(" -- Runs of increasing value nucelotides --");
        runsPrint(forRunNo);
        
        // Nucleotide reverse run
        System.out.println(" -- Runs of reversing value nucelotides --");
        runsPrint(backRunNo);
        
        // Codon run
        System.out.println(" -- Runs of repeat codons --");
        runsPrint(codonRunNo);
        
        // Amino acid run
        System.out.println(" -- Runs of repeat amino acids --");
        runsPrint(aaRunNo);
        
        // Class run
        System.out.println(" -- Runs of repeat classes --");
        runsPrint(classRunNo);
        
        // Polarity run
        System.out.println(" -- Runs of repeat polarities --");
        runsPrint(polRunNo);
        
    } // Method - printTotals