Code example for PrintStream

Methods: format, print, println

0
            out.println();
            printed = true;
        } 
 
        void print2(PrintStream out, boolean bigMarking) {
            out.format("%5d. ", id);
             
            out.println(test.toString());
            out.print("       ");
             
            switch (histRelevance) {
                case -4: out.print("FAIL"); break;
                case 4: out.print("PASS"); break;
                case 3: out.print("PASS"); break;
                case -2: out.print("SLOW"); break;
                case 2: out.print("FAST"); break;
                case 1: out.print("PASS"); break;
                case -3: 
                    if (res == -2) out.print("FAIL");
                    else out.print("ERR ");
                    break; 
                default: 
                    if (res == 0) out.print("PASS");
                    else if (res == -2) out.print("FAIL");
                    else out.print("XCPT");
            } 
             
            out.format(" %d ms (min %d ms, max %d ms, avg %#.1f ms, %d runs)",
                    duration,
                    statMinDuration, statMaxDuration, statAvgDuration,
                    statCount);
            out.println();
             
            printed = true;
        } 
 
        void print(PrintStream out, boolean bigMarking) {