-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAVLTreeTest.java
39 lines (29 loc) · 887 Bytes
/
AVLTreeTest.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
import java.util.Scanner;
public class AVLTreeTest {
// declare constants
public static final String TESTING_INSERT = "Testing insert()";
public static final String INSERTING = "Inserting ";
public static final String TESTING_FIND = "Testing find()";
public static final String FINDING = "Finding ";
public static final String SUCCESS = "SUCCESS!";
public static final String FAILED = "FAILED!";
public static final String CORRECT = "CORRECT!";
public static final String INCORRECT = "INCORRECT!";
public static final String ELLIPSIS = "...";
public AVLTreeTest() {
}
public static void print(String msg, boolean newLine) {
if (newLine) {
System.out.println(msg);
} else {
System.out.print(msg);
}
}
public static void print(int value, boolean newLine) {
if (newLine) {
System.out.println(value);
} else {
System.out.print(value);
}
}
}