private boolean runTest () {
        int choice;
        String data;


        do {
            printMenu ();
            choice = sc.nextInt ();

            switch (choice) {
                case -1:
                    break;


                case 0:
                    demo ();
                    break;


                case 1:
                    System.out.println ("Enter phrase: ");
                    data = sc.next ();

                    System.out.println ("Enter mistake mode: ");
                    printManual ();
                    while ((choice = sc.nextInt ()) != -1) {
                        manual (data, choice);
                        System.out.println ("Enter mistake mode: ");
                        printManual ();
                    }

                    printMenu ();
                    choice = sc.nextInt ();
                    break;


                case 2:
                    HammingDecoder.debug = !HammingDecoder.debug;
                    choice = 0;
                    break;


                case 3:
                    HammingEncoder.debug = !HammingEncoder.debug;
                    choice = 0;
                    break;


                default:
                    System.out.println ("Huh?");
                    break;
            }
        } while (choice != -1);
        return true;
    }