4
answers
0
watching
244
views
28 Dec 2017

23. What String does the following code return if the input to the method is the String with contents ABCD. public static String mystery (String input) { String tricky = ""; for (int i = 0; i < input.length(); i++) { tricky = input.charAt(input.length() - i - 1) + tricky; return tricky; (A) ABCD (B) DDCCBBAA (C) There is a runtime error. (D) AABBCCDD (E) DCBA

For unlimited access to Homework Help, a Homework+ subscription is required.

Unlock all answers

Get 1 free homework help answer.
Already have an account? Log in
Already have an account? Log in
Already have an account? Log in
Elin Hessel
Elin HesselLv2
28 Dec 2017
Already have an account? Log in

Related questions

Related Documents

Weekly leaderboard

Start filling in the gaps now
Log in