Here you can find the source of PrintStackTrace(PrintStream out)
public static void PrintStackTrace(PrintStream out)
//package com.java2s; //License from project: Open Source License import java.io.*; public class Main { public static void PrintStackTrace(PrintStream out) { try {/*from w w w .ja va 2s.com*/ throw new Exception("Stack Trace:"); } catch (Exception e) { e.printStackTrace(out); } } public static void PrintStackTrace() { PrintStackTrace(System.out); } }