Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static boolean method1(int n)
- {
- System.out.println("Calling method 1");
- return n<10;
- }
- public static boolean method2(int n)
- {
- System.out.println("Calling method 2");
- return n<10;
- }
- //Used code below; what's the resulting printed statements?
- for(int n=0;n<11;n++)
- {
- if(method1(n) || method2(n))
- System.out.println();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement