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
6 ответов
+ 4
Jose Reinaldo Parra Morales
Where is your attempts?
+ 3
You gonna help yourself !
Try it first .
+ 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í
}
}
+ 1
Jose Reinaldo Parra Morales
Just through reverse looping technique you can convert char array to reverse string.
0
Friend, you already finish that java project, can you give me an example, please?