Page 1 of 1

What does the following code display? String str = "Antelope Country"; String mystery = ""; for (int i = 0; i < str.leng

Posted: Tue Jul 05, 2022 10:25 am
by answerhappygod
What Does The Following Code Display String Str Antelope Country String Mystery For Int I 0 I Str Leng 1
What Does The Following Code Display String Str Antelope Country String Mystery For Int I 0 I Str Leng 1 (75.81 KiB) Viewed 9 times
What does the following code display? String str = "Antelope Country"; String mystery = ""; for (int i = 0; i < str.length(); i++) mystery str.charAt(i) + mystery; = System.out.println(mystery); Select one A. Antelope Country OB. yrtnuoc epoletnA OC. epoletnA yrtnuoc OD. Nothing, this is an error