比如我的数组是
String[][]   str1   =   null;
str1[0] [0]="a"; 
str1[0] [1]="1";  str1[1] [0]="b"; 
str1[1] [1]="2";str1[2] [0]="a"; 
str1[2] [1]="3";str1[3] [0]="c"; 
str1[3] [1]="6";str1[4] [0]="a"; 
str1[4] [1]="6";str1[5] [0]="a"; 
str1[5] [1]="6";...............
我想让0项相同的行的1项相加得到
str1[0] [0]="a"; 
str1[0] [1]="16";  str1[1] [0]="b"; 
str1[1] [1]="2";str1[2] [0]="c"; 
str1[2] [1]="6";请问我应该怎么做 谢谢