blob: a9f802c0e31d5fd35a112c43a06bcc641035acd8 (
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
27
28
29
|
interface I
{
int i = 1, ii = Test.out ("ii", 2);
}
interface J extends I
{
int j = Test.out ("j", 3), jj = Test.out ("jj", 4);
}
interface K extends J
{
int k = Test.out ("k", 5);
}
public class PR162
{
public static void main (String[] args)
{
System.out.println (J.i);
System.out.println (K.j);
}
public static int out (String s, int i)
{
System.out.println (s + "=" + i);
return i;
}
}
|