Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class test
- {
- public static void main (String[] args)
- {
- System.out.println("Hello ");
- System.out.println(test2.testf());
- System.out.println(testf2());
- }
- private static int testf2()
- {
- return 5;
- }
- }
- class test2
- {
- public static int testf()
- {
- return 10;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement