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

1234567891011121314151617181920212223242526272829
  1. import org.aspectj.testing.*;
  2. public class PR417b {
  3. public static class StaticTypes {
  4. public static Integer INT = new Integer(3);
  5. public static int i = 0;
  6. public static byte b = (byte)1;
  7. public static long l = 2L;
  8. public static double d = (double)3;
  9. public static float f = (float)4;
  10. public static short s = (short)5;
  11. public static char c = 'c';
  12. }
  13. public static void main (String[] args) {
  14. new PR417b().run();
  15. }
  16. public void run() {
  17. Tester.check(StaticTypes.INT.equals(new Integer(3)), "INT != 3");
  18. Tester.checkEqual(StaticTypes.i,0);
  19. Tester.checkEqual((int)StaticTypes.b,1);
  20. Tester.checkEqual((int)StaticTypes.l,2);
  21. Tester.checkEqual((int)StaticTypes.d,3);
  22. Tester.checkEqual((int)StaticTypes.f,4);
  23. Tester.checkEqual((int)StaticTypes.s,5);
  24. Tester.checkEqual(StaticTypes.c,'c');
  25. }
  26. }