Skip to main content
summaryrefslogtreecommitdiffstats
blob: 745c60870052633cee5dcf2ca5fe63d69c7ffd6e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package p; //swap hello and goodbye

class TEST
{
   public interface X
   {
	  public void method(final int i, String hello, final String goodbye);
   }
   
   private static X x = new X()
	{
	   public void method(final int i, String hello, final String goodbye)
	   {
		  System.err.println(hello + goodbye);
	   }
	};
   
   public static void main(String[] args)
   {
	  x.method(1, "hello", "goodbye");
   }
}

Back to the top