Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package week11.solutions;
- public class MethodCalls {
- public static void main(String[] args) {
- method1();
- }
- public static void method1() {
- System.out.println(1);
- method2();
- method3();
- System.out.println("Finished");
- }
- public static void method2() {
- System.out.println(2);
- method4();
- method6();
- }
- public static void method3() {
- System.out.println(3);
- method5();
- }
- public static void method4() {
- System.out.println(4);
- }
- public static void method5() {
- System.out.println(5);
- }
- public static void method6() {
- System.out.println(6);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement