做过的笔试题
摘要:
1.有一数组S[] = {good,apple,fix,king,soft,god,food},要求将这个数组按照首字母分成多个数组,使其成为{apple},{fix,food},{good,god}这种,每一个数组内都是这样有序的。View Code 1 import java.util.ArrayList; 2 3 4 public class strings { 5 6 public ArrayList<ArrayList<String>> get(String[] s){ 7 ArrayList<ArrayList<String>> ar 阅读全文
posted @ 2012-10-28 20:06 chlde2500 阅读(174) 评论(0) 推荐(0)
浙公网安备 33010602011771号