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.

HW.java 498B

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