import java.util.List;
import java.util.Scanner;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
public class Main {
public static void main(String[] args) {
System.out.println("aetyhe"=="aetyhe");
System.out.println("aetyhe"==new String("aetyhe"));
System.out.println(new String("aetyhe")==new String("aetyhe"));
System.out.println("aetyhe".equals("aetyhe"));
System.out.println("aetyhe".equals(new String("aetyhe")));
System.out.println(new String("aetyhe").equals(new String("aetyhe")));
System.out.println("aetyhe".contains("aetyhe"));
System.out.println("aetyhe".contains("ae"));
System.out.println("aetyhe".contains("aeg"));
System.out.println("aetyhe".contains(" "));
System.out.println("aetyhe".contains(""));
System.out.println("aetyhe".isEmpty());
System.out.println(" ".isEmpty());
System.out.println("".isEmpty());
System.out.println("asddffasffmmejasg".charAt(3));
String str="sadfjoeuiwejej";
String[] str1=new String[str.length()];
str1=str.split("");
System.out.println(Arrays.toString(str1));
String str2="sadfjoeusiwejesj";
String str3=str2.replace("s", "mMM");
System.out.println(str3);
StringBuilder str7=new StringBuilder(str2);
System.out.println(str7.replace(3,7,"OOO"));
String str4="sadfjoeusiwejesj";
System.out.println(str4.indexOf("j"));
System.out.println(str4.lastIndexOf("j"));
System.out.println(str4.indexOf("j",7));
String str5="sjkeuhiodnwqpdk";
StringBuilder str6=new StringBuilder(str5);
System.out.println(str6.reverse());
String str8="wehtdfjwem,fghk kldw edd ";
System.out.println(str8.replace("we", ""));
System.out.println(str8.replace(" ", ""));
StringBuilder str9=new StringBuilder(str8);
System.out.println(str9.replace(3,7,""));
System.out.println(str9.delete(0,3));
System.out.println(str9.append("MM"));
StringBuilder str1=new StringBuilder("1aa");
if(str1.toString().equals(str1.reverse().toString())) {
System.out.println(str1+" "+"是回文!");
}else {
System.out.println(str1+" "+"不是回文!");
}
StringBuilder str2=new StringBuilder("a161a");
if(str2.toString().equals(str2.reverse().toString())) {
System.out.println(str2+" "+"是回文!");
}else {
System.out.println(str2+" "+"不是回文!");
}
}
}