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."); } }
5 Answers
0
Thanks but this will work baa
System.out.println("You typed "+ st);
0
Asking