diff options
Diffstat (limited to 'tests/bugs/StringToString/HW.java')
-rw-r--r-- | tests/bugs/StringToString/HW.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/bugs/StringToString/HW.java b/tests/bugs/StringToString/HW.java new file mode 100644 index 000000000..66eeca22c --- /dev/null +++ b/tests/bugs/StringToString/HW.java @@ -0,0 +1,28 @@ + +import java.util.ArrayList; +import java.util.Iterator; +import java.util.Properties; + +public class HW extends ArrayList { + + String message = "Hello World!"; + + private void check (String args) { + } + + public void println () { + System.out.println(message); + } + + public static void main(String[] args) { + HW hw = new HW(); + hw.println(); + for (int i = 0; i < args.length; i++) { + String jp = args[i]; + if (!hw.contains(jp)) { + throw new RuntimeException(jp + " missing"); + } + } + } + +} |