Skip to main content
summaryrefslogtreecommitdiffstats
blob: 0bb18646aed4dd493bbe2b423546978525dceeb6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package p;

import java.util.Enumeration;

public class A {
	private void createTestList(TestCollector collector) {
		Enumeration<String> each= collector.collectTests();
		while (each.hasMoreElements()) {
			String s= each.nextElement();
		}
	}
}

interface TestCollector {
	public Enumeration<String> collectTests();
}

Back to the top