0

What is wrong with this cide too

/*Enter a string that when it is re-weite from the back,we are still going to get the same thing*/ import java.util.Scanner; public class Pattern { public static void main(String args[]) { Scanner sc = new Scanner(System.in); String st = sc.nextLine(); System.out.println("You typed "+ sc.nextLine()); System.out.println(st.reverse()); }if(st.equalsIgnoreCase(st.reverse())){ System.out.println("You typed in the Same string."); } }

3rd Sep 2020, 6:16 AM
OLA OLA
5 Antworten
0
Thanks but this will work baa System.out.println("You typed "+ st);
3rd Sep 2020, 6:37 AM
OLA OLA
0
Asking
3rd Sep 2020, 6:46 AM
OLA OLA