Question: 12. Consider the following method. public static void quest 0914 (String 3) { int n = s.length(); if(n > 1) { String temp = 3.substring(0,

12. Consider the following method. public static void quest 0914 (String 3) { int n = s.length(); if(n > 1) { String temp = 3.substring(0, n-1); System.out.println(temp); quest0914 (temp); } } Which of the following is printed as a result of the call quest0914 ("TANGO") ? (A) O (B) TANG (C) ANGO ANG AN (D) TANG TAN TA . (E) TANGO TANG TAN TA
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
