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

Main.22.java 427B

12345678910111213141516171819
  1. package packageOne;
  2. import org.aspectj.testing.Tester;
  3. public class Main {
  4. public static void main(String[] args) {
  5. Tester.expectEvent("go");
  6. for (int i = 0; i < args.length; i++) {
  7. Tester.expectEvent(args[i]);
  8. }
  9. go();
  10. Tester.checkAllEvents();
  11. }
  12. static void go() {
  13. Tester.event("go");
  14. Tester.event("new-event"); // newly-generated event
  15. }
  16. }