0
我想找出要放在裏面的東西? 因此,例如,我想在字符串拆分後的字符串
public static boolean isPalindrome(String strIn) {
strIn = strIn.toLowerCase();
strIn = strIn.trim();
String str2 = strIn;
str2.split("");
String[] word = new String[ ????];
} else {
return false;
}
return true;
}
我提供的代碼。我認爲這是java編程 – Human
使用'String tmp [] = str2.split(「\\ W +」);''String [] word = new String [tmp.length];' – Satya