编程珠玑第三章习题3.7(5-8)

5.将输入的单词表示成带有后缀连字符的单词java package chapter3; public class t5 { public static String matchSuffix(String word,String[] suffixs){ int matchIndex=-1;//存储最后单词word与哪个后缀匹配,suffixs[matchIndex]
相关文章
相关标签/搜索