aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs/StringToString/HW.java
blob: 66eeca22cdfacc4f72af14b00955c1450cecb37f (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
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Properties;

public class HW extends ArrayList {

  String message = "Hello World!";

	private void check (String args) {
	}

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

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

}