Javaのカンニングペーパー


比較とチェック
String newStr = str1.equals(str2); 
String newStr = str1.equalsIgnoreCase() 
newStr = str1.IsEmpty(); 
newStr = str1.endsWith();
newStr = str1.contains("value"); 
変換と置換
newStr = str1.toUpperCase()
newStr = str1.toLowerCase()
newStr = str1.toCharArray(); 
newStr = str1.trim() 
newStr = str1.replace(oldVal, newVal)