Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

FancyHelloWorld.java 820B

123456789101112131415161718192021222324252627282930313233343536
  1. /* Copyright (c) 2002 Contributors.
  2. *
  3. * This program and the accompanying materials are made available
  4. * under the terms of the Common Public License v1.0
  5. * which accompanies this distribution and is available at
  6. * http://www.eclipse.org/legal/cpl-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. }