public class SwissArmyKnife extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
debug |
Constructor and Description |
---|
SwissArmyKnife() |
Modifier and Type | Method and Description |
---|---|
static int |
faculty(int i)
Calculates the faculty for a given integer
|
static String |
getDuration(long diff)
Returns a String reporting the time passed during a given number of milliseconds.
|
static String |
getDuration(long startTime,
long endTime)
Returns a string reporting the time passed between startTime and endTime, both given in milliseconds, in hours, minutes, seconds and milliseconds
|
static String |
printInt2D(int[][] contab)
Returns a string representation of a 2D int matrix for printing or listing to the console
|
public static final boolean debug
public static String getDuration(long startTime, long endTime)
startTime
- The start time in millisecondsendTime
- The end time in millisecondspublic static String getDuration(long diff)
diff
- A time span in millisecondspublic static String printInt2D(int[][] contab)
contab
- The 2D int matrix for which a string representation is to be generatredpublic static int faculty(int i)
i
- The int value for which the faculty is to be returned