if(containsAllWeather || containsAllWeather2){
String weatherLocation = value.toString();
if (weatherLocation != null){
weatherLocation.replaceAll("how","")
.replaceAll("what","")
.replaceAll("weather", "")
.replaceAll("like", "")
.replaceAll(" in", "")
.replaceAll(" at", "")
.replaceAll("around", "");
}
weatherLocation は、変数値に含まれるものを正確に提供し、上記の単語を削除しません。
これは、weatherLocation を文字列の配列、たとえば weatherLoc の配列に分割したときに機能し、それらのコード行は weatherLoc[1] で機能しました
私は何を間違っていますか?