英文描述整理"/>
面向对象编程的概念及特性 英文描述整理
第七题private String[] strs = {"abc","def","ghi","jkl","mno","pqrs","tuv","wxyz"};
public List<String> letterCombinations(String digits) {
List<String> list=new ArrayList<String>();
if(digits.length()==0){
return list;
}
if(digits.length()==1){
int index=Integer.parseInt(digits)-2;
String x=strs[index];
char[] c=x.toCharArray();
for(int i=0;i<c.length;i++){
list.add(""+c[i]);
}
return list;
}
String newdigits=digits.substring(1);
String in
更多推荐
面向对象编程的概念及特性 英文描述整理
发布评论