Java 对称字符串
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String str = sc.next();
StringBuilder sb = new StringBuilder(str);
String str1=sb.reverse().toString();
System.out.println(str1.equals(str));
}
}
//是对称字符串输出true,反之输出false