public static String dumpThreads() {
        final StringWriter sout = new StringWriter(); // Capture listing in a
        // string
        final PrintWriter out = new PrintWriter(sout);
        Util.listAllThreads(out);
        out.flush();
        return sout.toString();
    }
public static String dumpThreads ( ) { final StringWriter sout = new StringWriter ( ) ; final PrintWriter out = new PrintWriter ( sout ) ; Util . listAllThreads ( out ) ; out . flush ( ) ; return sout . toString ( ) ; }
Finds information about the threads and dumps them into a String.

@return the String containing info about all threads