写出String2类中实现查找字符操作的方法:publicintIndexOf(charc); 解答: publicintIndexOf(charc){ inti=0; boolfound=false; StringNodeq=head.next; while(q!=null){ if(q.item==c){ found=true; break; } i++; q=q.next; } if(found) returni; else retur