Class PrintUtil
java.lang.Object
Jcg.util.PrintUtil
-
Field Details
-
ANSI_RESET
- See Also:
-
ANSI_RED
- See Also:
-
ANSI_GREEN
- See Also:
-
ANSI_PURPLE
- See Also:
-
ANSI_BLUE
- See Also:
-
ANSI_MAGENTA
- See Also:
-
ANSI_CYAN
- See Also:
-
-
Constructor Details
-
PrintUtil
public PrintUtil()
-
-
Method Details
-
print
public static void print(int[] t) Print an array of integers (separated by spaces) -
approx
public static double approx(double x, int prec) Return an approximation of a real (double) number, with a given precision- Parameters:
x- the input real numberprec- numeric precision- Returns:
- an approximation of x
-