0

Who helps me? Write a program to take a string as input and generate its inverse. The given code takes a string as input and c

24th Apr 2021, 1:16 PM
Jose Reinaldo Parra Morales
Jose Reinaldo Parra Morales - avatar
5 Respostas
+ 4
Jose Reinaldo Parra Morales Where is your attempts?
24th Apr 2021, 1:29 PM
A͢J
A͢J - avatar
+ 3
You gonna help yourself ! Try it first .
24th Apr 2021, 2:00 PM
Giriraj Yalpalwar
Giriraj Yalpalwar - avatar
+ 1
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(); //tu código va aquí } }
24th Apr 2021, 4:04 PM
Jose Reinaldo Parra Morales
Jose Reinaldo Parra Morales - avatar
+ 1
Jose Reinaldo Parra Morales Just through reverse looping technique you can convert char array to reverse string.
24th Apr 2021, 5:34 PM
A͢J
A͢J - avatar
0
Friend, you already finish that java project, can you give me an example, please?
24th Apr 2021, 5:38 PM
Jose Reinaldo Parra Morales
Jose Reinaldo Parra Morales - avatar