Write the output of test(1), test(3) and test(6)? (Java language) The output is: test(1) : test(3) : test(6) : = 0; i--) tt += t.charAt (i); for (int i = 0; i public static void test (int k) { String...



Write the output of test(1), test(3) and test(6)? (Java language)



The output is:



test(1) :



test(3) :



test(6) :



public static void test (int k) {<br>String t = = 0; i--) tt += t.charAt (i); for (int i = 0; i < k;="" i++)="" {="" tt="tt.substring" (tt.indexof="" ("="" ")="" +="" 1);="" system.out.println="" (tt.substring="" (0,="" tt.indexof="" ("="" ")));="" "/="">
Extracted text: public static void test (int k) { String t = "I wish you success in the final exam"; String tt = "" for (int i = t.length()-1; i >= 0; i--) tt += t.charAt (i); for (int i = 0; i < k;="" i++)="" {="" tt="tt.substring" (tt.indexof="" ("="" ")="" +="" 1);="" system.out.println="" (tt.substring="" (0,="" tt.indexof="" ("="">

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here