+ 1
How to use array
I'm stuck in third quiz which is reverse a String. I don't understand it. I don't know how to create the process. Example Input : hello Output : olleh My code: import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String text = scanner.nextLine(); char[] arr = text.toCharArray(); System.out.print(arr); } }
3 Respostas
+ 3
This an example with array will help you:
https://code.sololearn.com/cFEqcptcF943/?ref=app
+ 2
Please add-show your attempt so the community can help you more easily :)
Edited:
Now added.
+ 1
Which language?