public void printStackTrace(){
  Throwable t;
  StringWriter writer;
  writer=new StringWriter();
  t=new Throwable();
  t.fillInStackTrace();
  t.printStackTrace(new PrintWriter(writer));
  println(writer.toString());
}

public void printStackTrace ( ) { Throwable t ; StringWriter writer ; writer = new StringWriter ( ) ; t = new Throwable ( ) ; t . fillInStackTrace ( ) ; t . printStackTrace ( new PrintWriter ( writer ) ) ; println ( writer . toString ( ) ) ; }
prints the current stacktrace
