1)判断给定的字符串是否为此字符串的后缀
String specifiedString = "testEndWithMethod.txt";
boolean isSuffix = specifiedString.endsWith("txt");
1)判断给定的字符串是否为此字符串的后缀
String specifiedString = "testEndWithMethod.txt";
boolean isSuffix = specifiedString.endsWith("txt");