Posts by Elton Souza • 31 points
1 post
-
-5
votes5
answers10820
viewsA: How to Reverse a String?
public static void main(String[] args) { Scanner entrada= new Scanner(System.in); String x =entrada.next(); char charAt = x.charAt(0); String invertido=""; for(int i=0;i<x.length();i++) {…