현재 문자열이 해당 문자열(prefix)로 시작하는지 여부를 반환
String str = "My Java World";
boolean isIt = str.startsWith("My"); // true
boolean isIt2 = str.startsWith("my"); // false
현재 문자열이 해당 문자열(suffix)로 끝나는지 여부를 반환
String str = "My Java World";
boolean isIt = str.endsWith("World"); // true
boolean isIt2 = str.endsWith("world"); // false