String str = "长亭外古道边";
boolean status = str.contains("古");
if (status) {
System.out.println("包含");
} else {
System.out.println("不包含");
}
String str = "长亭外古道边";
boolean status = str.contains("古");
if (status) {
System.out.println("包含");
} else {
System.out.println("不包含");
}