用字符串存储多个子字符串,取字符串以逗号隔开的两个子字符串

int commaIndex = String1.indexOf(",",0);
String temp_prjid = String1.substring(0,commaIndex);            
String temp_userid = String1.substring(commaIndex);

 

相关文章: