Welcome to the Java Ranch. While we pride ourselves on being friendly to those learning Java, we don't do homework. It would be best for your education if you attempted to do the application yourself. Do you know Java? If not, try going through the
Java Tutorial. If you just need the details on the Java Comm API, check out the
User's Guide. It may be in your benefit to search the
Other Java APIs forum here, where questions about Java Comm are frequent.
If you have specific questions, feel free to post the code you are having problems with and we will be glad to help.
Since this is not an IO question, I'm moving it to
Other Java APIs