-
Notifications
You must be signed in to change notification settings - Fork 0
/
Debug.java
48 lines (40 loc) · 1.11 KB
/
Debug.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
This code is just because I got annoyed with writing "System.out.println();" every single time lmao
We can prob expand this for testing other things as well by creating new methods to test more specific
issues
*/
public class Debug {
private long __chache__ = 0;
public void print(String s) {
System.out.println(s);
}
public void print(char c) {
System.out.println(c);
}
public void print(int i) {
System.out.println(i);
}
public void print(double d) {
System.out.println(d);
}
public void print(float f) {
System.out.println(f);
}
public void print(boolean b) {
System.out.println(b);
}
public void printMap(char[][] map) {
for(int i = 0; i < map.length; i++) {
for(int j = 0; j < map[1].length; j++)
System.out.print("\'" + map[i][j] + "\'");
System.out.println();
}
System.out.println("");
}
public void logTime(long s) {
__chache__ = s;
}
public long timeDifference(long s) {
return s - __chache__;
}
}