13,097
社区成员




temp1.substring(0, temp1.indexOf(","))
那怎么不直接用temp1取呢??temp1 = temp1.substring(temp1.indexOf(",")+1);//修改temp1所保存的值,方便下面调用
System.out.println("temp1_3:"+temp1);
System.out.println("temp1_4:"+temp1.substring(0, temp.trim().indexOf(",")));