How to use array | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 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); } }

19th Feb 2021, 11:36 AM
Rocastle Asing
Rocastle Asing - avatar
3 ответов
+ 3
This an example with array will help you: https://code.sololearn.com/cFEqcptcF943/?ref=app
19th Feb 2021, 1:17 PM
JaScript
JaScript - avatar
+ 2
Please add-show your attempt so the community can help you more easily :) Edited: Now added.
19th Feb 2021, 11:47 AM
Matthew
Matthew - avatar
+ 1
Which language?
19th Feb 2021, 11:41 AM
Matias
Matias - avatar