summaryrefslogtreecommitdiffstats
path: root/src/redbook/etc/Util.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/redbook/etc/Util.java')
-rw-r--r--src/redbook/etc/Util.java32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/redbook/etc/Util.java b/src/redbook/etc/Util.java
new file mode 100644
index 0000000..77e3e7f
--- /dev/null
+++ b/src/redbook/etc/Util.java
@@ -0,0 +1,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);
+ }
+
+
+ }
+}