You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324
  1. import java.util.ArrayList;
  2. import java.util.Iterator;
  3. import java.util.Properties;
  4. public class LTWHelloWorld extends ArrayList {
  5. private String message = "Hello World!";
  6. public void println () {
  7. System.out.println(message);
  8. }
  9. public static void main(String[] args) {
  10. LTWHelloWorld hw = new LTWHelloWorld();
  11. hw.println();
  12. for (int i = 0; i < args.length; i++) {
  13. String jp = args[i];
  14. if (!hw.contains(jp)) {
  15. throw new RuntimeException(jp + " missing");
  16. }
  17. }
  18. }
  19. }