- Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathMain.java
More file actions
Latest commit
23 lines (19 loc) · 525 Bytes
/
Copy pathMain.java
File metadata and controls
23 lines (19 loc) · 525 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
importjava.util.*;
importjava.io.*;
publicclassMain {
privatestaticfinalbooleanDEBUG = Boolean.parseBoolean(System.getProperty("DEBUG", "false"));
privatestaticvoiddebug(Object... args) {
if (DEBUG) {
System.err.print("DEBUG: ");
for (Objectarg : args) {
System.err.print(arg + " ");
}
System.err.println();
}
}
publicstaticvoidmain(String[] args) throwsIOException {
Scannersc = newScanner(System.in);
// code goes here ...
sc.close();
}
}