import java.util.Scanner;
/**
* @author gyf
* @ClassName Test
* @Date 2024/7/31 13:39
* @Version V1.0
* @Description :
*/
public class Test {
public static void main(String[] args) {
// StringBuilder 的场景
// 1.字符串的拼接
// 2.字符串的反转
Scanner scanner = new Scanner(System.in);
System.out.println("输入一个字符串:");
String str = scanner.next();
System.out.println(str);
StringBuilder str1 = new StringBuilder(str).reverse();
System.out.println(str1);
// 做判断
String str2 = str1.toString();
if (str.equals(str2)){
System.out.println("对称");
}else {
System.out.println("非对称");
}
}
}