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.

Case5.java 303B

123456789101112131415161718192021
  1. import java.lang.reflect.*;
  2. interface I {
  3. }
  4. class C implements I {
  5. }
  6. public aspect Case5 {
  7. public String I.str = "hello";
  8. public static void main(String []argv) {
  9. Field[] fs = C.class.getDeclaredFields();
  10. for (Field f: fs) {
  11. System.out.println(f);
  12. }
  13. }
  14. }