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.

Hello.java 450B

123456789101112131415161718192021222324
  1. package org.aspectj.aopalliance.tests;
  2. public class Hello {
  3. public static boolean defaultConsExecuted = false;
  4. public static boolean paramConsExecuted = false;
  5. public static int sayHelloCount = 0;
  6. private String msg = "Hello";
  7. public Hello() { defaultConsExecuted = true;}
  8. public Hello(String s) {
  9. msg = s;
  10. paramConsExecuted = true;
  11. }
  12. public String sayHello() {
  13. sayHelloCount++;
  14. return msg;
  15. }
  16. }