01: package org.foo.myapp;
02:
03: import java.io.IOException;
04: import java.util.Set;
05: import org.openide.util.WeakSet;
06: import org.openide.util.io.NullInputStream;
07:
08: public class MyApp {
09: public static void main(String[] args) throws IOException {
10: Set s = new WeakSet();
11: s.add("hello");
12: System.out.println("A WeakSet from lib1.jar: " + s);
13: System.out
14: .println("A NullInputStream.available from lib2.jar: "
15: + new NullInputStream().available());
16: }
17: }
|