blob: 77e3e7f59e13a8d608ce2ddcd99fdfba9b1f3a72 (
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
30
31
32
|
package etc;
import java.util.Scanner;
import java.util.TreeSet;
/**
*
* @author mbien
*/
public class Util {
public static void main(String[] args) {
Scanner scanner = new Scanner(Util.class.getResourceAsStream("redbook.txt"));
TreeSet<String> set = new TreeSet<String>();
while(scanner.hasNext())
set.add(scanner.next());
// for (String item : set) {
// System.out.println("<applet width='${JNLP.APPLET.WIDTH}' height='${JNLP.APPLET.HEIGHT}'>");
// System.out.println(" <param name='jnlp_href' value='${JNLP.FILE}'/>");
// System.out.println(" <param name='demo' value='"+item+"'/>");
// System.out.println("</applet>");
// }
for (String item : set) {
System.out.println("<option value='"+item+"' selected>"+item);
}
}
}
|