Question: how to correct my code or how to write it in java? Homework: String Reverse Let's get some more practice working with Java Strings: an

 how to correct my code or how to write it in
java? Homework: String Reverse Let's get some more practice working with Java
how to correct my code or how to write it in java?

Homework: String Reverse Let's get some more practice working with Java Strings: an incredibly useful data type for working with text. Write a function called reverse. It should accept a single String argument and return that String, reversed! There are several ways to approach this problem, and you may want to look into either the charAtE or tocharArray String methods. A You have until 11:59PM Central Time on 2021-02-10 to complete this problem. WORKING PREVIOUS 2 3 4 1 String reverse(String 0) { char[] newo - o. tocharArray(); String b = "; for (int i = o. length - 1; i >= 0; i--) { b+= o[1]; } return o; 8) 9 5 6 7 10 Question.java:4: error: cannot find symbol for (int i = o. length - 1; i >= 0; i--) { symbol: variable length location: variable o of type java.lang.String Question.java:5: error: array required, but java.lang.String found b += o[i]; 2 errors

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!