当字符串中有空格,回车等元素时,方法isEmpty()一九会返回false,因为此时字符串不为空,是有元素的。 isBlank()方法 判断字符串是否为空白(是指字符串中只有空格,回车,“\t”,\n等,或是没有元素)。 boolean index_18 = str_4.isBlank(); boolean index_19 = str_5.isBlank(); System.out.println(index_...
Java6)和isBlank() 方法(Java空