writeSpaces(10); | V +--->--->--->--->--->---+ +----------------------------------------------+ | public static void writeSpaces(int number) { | | ... | | } |
+-------------------------------+ | method main | | +---+ +----+ | | first | 8 | second | 10 | |
+-------------------------------+ | method main | | +---+ +----+ | | first | 8 | second | 10 | | +--------------------+ | method writeSpaces | | +---+ | | number | 8 | |
+-------------------------------+ | method main | | +---+ +----+ | | first | 8 | second | 10 | |
+-------------------------------+ | method main | | +---+ +----+ | | first | 8 | second | 10 | | +--------------------+ | method writeSpaces | | +----+ | | number | 10 | |
+-------------------------------+ | method main | | +---+ +----+ | | first | 8 | second | 10 | |
+---------------+ | method main | | +----+ | | x | 17 | |
+---------------+ | method main | | +----+ | | x | 17 | | +---------------------+ | method doubleNumber | | +----+ | | number | 17 | |
+---------------+ | method main | | +----+ | | x | 17 | | +---------------------+ | method doubleNumber | | +----+ | | number | 34 | |
+---------------+ | method main | | +----+ | | x | 17 | |