Section8Problems 4 - r or eacn call- below, indicate what...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: r or eacn call- below, indicate what output is produced by the method: Method mysteryT mystery7 mystery7 mystery7 mystery7 8. Consider the Call (O) (1) (2 ) (4) (5) fol-lowing method: Output Produced public if void mysteryS (int n) { (n (n) ; System. out.print else { mysteryS (2 * n); System. out .print ( ", " + n) ; ) below, Cal-l(113) (70) (42') indicate ) For each call what output is produced: Produced Method Output mysteryS mysteryS mysteryB mysteryS (30) mysteryS 9. Consider the (10) following method: x) (x) ; (y) ; ; (y) ; public if void mystery9 (int (x < 10) System. out.print else { inty-x*L0; System. out.print mystery9 (x / IOI System. out.print ) indicate I For each cal-l- below, CaIl (7 ) ; (38) ; (794) ; (182), (38421; what output j-s produced: Produced Method mystery9 mystery9 mystery9 mystery9 mystery9 Output ...
View Full Document

This note was uploaded on 11/03/2009 for the course CSE 143 taught by Professor Sr during the Spring '08 term at University of Washington.

Ask a homework question - tutors are online