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 < 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="" ("="">
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here