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.

Howard.java 571B

123456789101112131415161718192021222324252627282930
  1. package test1;
  2. import java.io.IOException;
  3. class Howard4 implements HowardHome {
  4. int n = 0;
  5. public Object create() throws IOException {
  6. if (n == 1)
  7. throw new IOException();
  8. else
  9. return "howard4";
  10. }
  11. }
  12. interface HowardHome {
  13. Object create() throws IOException;
  14. }
  15. class Howard2 {
  16. Object lookup(String n) { return new Howard4(); }
  17. }
  18. public class Howard extends Howard2 {
  19. @SuppressWarnings("unused")
  20. private Object _remote;
  21. public int run() {
  22. return 0;
  23. }
  24. }