Advertisement
Rochet2

Java class mess

Jun 19th, 2012
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.29 KB | None | 0 0
  1. public class test
  2. {
  3.     public static void main (String[] args)
  4.     {
  5.         System.out.println("Hello ");
  6.         System.out.println(test2.testf());
  7.         System.out.println(testf2());
  8.     }
  9.    
  10.     private static int testf2()
  11.     {
  12.         return 5;
  13.     }
  14. }
  15.  
  16. class test2
  17. {
  18.     public static int testf()
  19.     {
  20.         return 10;
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement