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.

FancyHelloWorld.java 821B

123456789101112131415161718192021222324252627282930313233343536
  1. /* Copyright (c) 2002 Contributors.
  2. *
  3. * This program and the accompanying materials are made available
  4. * under the terms of the Eclipse Public License v1.0
  5. * which accompanies this distribution and is available at
  6. * http://www.eclipse.org/legal/epl-v10.html
  7. *
  8. * Contributors:
  9. * PARC initial implementation
  10. */
  11. package org.aspectj.weaver.test;
  12. import java.io.PrintStream;
  13. /**
  14. * @version 1.0
  15. * @author
  16. */
  17. public abstract class FancyHelloWorld {
  18. public static void main(String[] args) {
  19. PrintStream out = System.out;
  20. try {
  21. out.println("bye");
  22. } catch (Exception e) {
  23. out.println(e);
  24. } finally {
  25. out.println("finally");
  26. }
  27. }
  28. public static String getName() {
  29. int x = 0;
  30. x += "name".hashCode();
  31. return "name" + x;
  32. }
  33. }