indexOf()函数不能检空格?写了以下代码,可返回值为-1 String str = "a bc"; int a = str.indexOf(' '); System.out.println(a); 怎么会事?