Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

distinguish the input with multiple argus

807589Sep 17 2008 — edited Sep 17 2008
hi all,

here i have a question about programming a SMTP email client using the command-line for the user input.
it requires distinguish the input with multiple argus, regardless upper case or lower case and the order of some critical key words, for example: "from:", "to:", "subject:", and "body:", this means the user input "ForM:" or "fOrM:" should recognize as a same "form:" string.
in addition, the command-line is as follow:

+java MyPMC To:xyz@gmail.com From:abc@yahoo.com Subject:Hi Body:See you at library a
and

java MyPMC froM:abc@yahoo.com TO:xyz@gmail.com suBjecT:Hi body:See you at library at 1

should work exactlly the same (assumming the java file name is MyPMC), how can i achieve this task.

please anyone can help me or give me some hints to do so.
thanks a lot.

Max
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 15 2008
Added on Sep 17 2008
2 comments
163 views