有没有人帮帮我搞定这一段JAVA代码!

Rockncx 2003-07-03 02:15:06
本人刚开始学习JAVA,毫无头绪,但是现在需要搞定这段代码,希望大家帮我的忙!
SMS Message Coding Java

You are required to design and implement (in Java) the front end of a web-based SMS (Short Message Service) gateway that will allow Internet users to send text messages to mobile phones.

SMS messages can be comprised of words or numbers (alpha-numeric characters) up to 160 characters in length. This limitation on message length, combined with the inconvenience of using mobile phone keypads for typing text has helped give rise to a popular culture of SMS abbreviations, similar to that found in internet chat-rooms. “b4n”, “L8”, “b4” and “btw” are examples of such usage (“bye for now”, “late”, “before” and “by the way”).


Your task at this stage is to design and write a Java program that will :

Prompt the user for a mobile phone number.
Verify the number is in a valid format (ie exactly 11 numeric characters etc).
Prompt the user for a text message.
Where possible, encode the message using SMS abbreviations.
Display the encoded (abbreviated) message to the user.
If text size still exceeds 160 characters, prompt user to edit the message.
Display the percentage reduction produced by this coding.




Bonus task:
Implement a decoding algorithm that would recover the original text message from an abbreviated version.
...全文
50 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
Rockncx 2003-07-09
  • 打赏
  • 举报
回复
高手们,帮忙看一看啊!我真的很急要,我在加200分
hongyi2000 2003-07-06
  • 打赏
  • 举报
回复
J2ME
Rockncx 2003-07-04
  • 打赏
  • 举报
回复
不是,这个是要求
sta_gz 2003-07-03
  • 打赏
  • 举报
回复
这是一段手机短信息的介绍(接口),不是代码,

看不懂就用金山词霸吧.

呵呵,这样也行.
javabandit 2003-07-03
  • 打赏
  • 举报
回复
这怕不是代码吧!
Rockncx 2003-07-03
  • 打赏
  • 举报
回复
期待有人回复啊!此贴救命!

51,407

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧