aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core/testdata/src1/LTWHelloWorld.java
blob: ec533506d6e28ad9354c92d91bb9a121d0a08180 (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
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Properties;

public class LTWHelloWorld extends ArrayList {

	private String message = "Hello World!";

	public void println () {
		System.out.println(message);
	}

	public static void main(String[] args) {
		LTWHelloWorld hw = new LTWHelloWorld();
		hw.println();		
		for (int i = 0; i < args.length; i++) {
			String jp = args[i];
			if (!hw.contains(jp)) {
				throw new RuntimeException(jp + " missing"); 
			}
		}
	}

}