Runtime.traceMethodCalls(boolean on) has the following syntax.
public void traceMethodCalls(boolean on)
In the following code shows how to use Runtime.traceMethodCalls(boolean on) method.
/*from ww w .j a v a2 s.c om*/ public class Main { public static void main(String[] args) { Runtime.getRuntime().traceMethodCalls(true); } }