So, which portion of this assignment are you exactly having trouble with? You could consider using the
Java Wireless Toolkit[
^] to accomplish this task. But you'll have to do it yourself, and can ask specific queries here when you get stuck somewhere.
The guidelines for asking a query on this site is
here[
^].