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.

Test.java 424B

12345678910111213141516171819202122232425262728
  1. package test;
  2. public class Test {
  3. public Test() {
  4. }
  5. public static void main(String[] args) {
  6. Test t = new Test();
  7. t.function();
  8. t.itdFunction();
  9. }
  10. public void function() {
  11. System.out.println("Normal function");
  12. privateMethod();
  13. publicMethod();
  14. }
  15. private void privateMethod() {
  16. System.out.println("private method");
  17. }
  18. public void publicMethod() {
  19. System.out.println("public method");
  20. }
  21. }