blob: 86e89c27f2826e7df0bc48e7f0e32a47b800bec1 (
plain)
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
|
/* Listing0911.java */
interface Debug
{
public static final boolean FUNCTIONALITY1 = false;
public static final boolean FUNCTIONALITY2 = true;
public static final boolean FUNCTIONALITY3 = false;
public static final boolean FUNCTIONALITY4 = false;
}
public class Listing0911
implements Debug
{
public static void main(String[] args)
{
//...
if (FUNCTIONALITY1) {
System.out.println("...");
}
//...
if (FUNCTIONALITY2) {
System.out.println("...");
}
//...
}
}
|