谁能帮忙做一下这个Soundex code in Java啊 不用arry的方法 10

这个是SoundexAlgorithm最好按照他的每一步来做1.Makeacopyofthefirstletterofthename.Itwillbethefirstch... 这个是Soundex Algorithm最好按照他的每一步来做

1.
Make a copy of the first letter of the name. It will be the first character in the Soundex code. (For example, keep the ‘s’ from “skipper”.)

2.
Translate all of letters of the name to their corresponding numeric codes, based upon the Soundex Key table. (“skipper” becomes “2201106”.)

3.
If the Soundex code values are the same for the initial portion of the string, then remove all but the first one. (“2201106” becomes “201106”.)

4.
Anywhere in the resulting Soundex code, if two adjacent codes are the same, remove the first one. (“201106” becomes “20106”)
5.
Overwrite the first value of the Soundex code with an uppercase version of the letter stored in step 1. (“20106” becomes “S0106”.)
6.
Remove all zeros from the Soundex code. (“S0106” becomes “S16”)
7.
The Soundex code consists of the original first letter, followed by exactly 3 numeric code values. If there are more than 3 digits, truncate it. If there are less than 3 digits, append a sufficient number of zeros. (“S16” becomes “S160”.)

Code Value
Letter
0
a e h i o u y w
1
b p f v
2
c s k g j q x z
3
d t
4
l
5
m n
6
r

跪求
展开
 我来答
匿名用户
2009-10-28
展开全部
i really dont know how to do those\\
i'm so sorry
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式