如果字符串就这个固定格式,可用以下代码://使用两个Vector容器来装载,可随时增加长度Vector sort1 = new Vector();Vector sort2 = new Vector();String str = "sort1[]=001&sort2[]=003&sort1[]=005&sort2[]=002&sort1[]=004&sort2[]=006";//先按sort类似拆分String[] all = str.split("&");for(int i = 0;i< all.length;i++) {if(