您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

LTWHelloWorld.java 497B

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. }