public class RecursionUtils extends Object
Modifier and Type | Method and Description |
---|---|
static int |
countCalls()
Returns the number of recursive calls currently on top of the call stack.
|
static void |
println(boolean b)
Prints the given value, with each line indented relative to how many
recursive calls are currently on top of the call stack.
|
static void |
println(char c)
Prints the given value, with each line indented relative to how many
recursive calls are currently on top of the call stack.
|
static void |
println(double d)
Prints the given value, with each line indented relative to how many
recursive calls are currently on top of the call stack.
|
static void |
println(int n)
Prints the given value, with each line indented relative to how many
recursive calls are currently on top of the call stack.
|
static void |
println(long l)
Prints the given value, with each line indented relative to how many
recursive calls are currently on top of the call stack.
|
static void |
println(Object o)
Prints the given value, with each line indented relative to how many
recursive calls are currently on top of the call stack.
|
static void |
println(String s)
Prints the given string, with each line indented relative to how many
recursive calls are currently on top of the call stack.
|
public static int countCalls()
public static void println(boolean b)
public static void println(char c)
public static void println(double d)
public static void println(int n)
public static void println(long l)
public static void println(Object o)
public static void println(String s)