diff options
Diffstat (limited to 'src/test/test4/Aaload.java')
-rw-r--r-- | src/test/test4/Aaload.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/test4/Aaload.java b/src/test/test4/Aaload.java new file mode 100644 index 00000000..5299b485 --- /dev/null +++ b/src/test/test4/Aaload.java @@ -0,0 +1,15 @@ +package test4; +import java.awt.MenuItem; + +public class Aaload { + static void narf() { + String[] list = null; + for (int i = 0; i < list.length; i++) { + String name = list[i]; + if (name.endsWith(".txt")) { + MenuItem item = new MenuItem(name); + item.addActionListener(null); + } + } + } +} |