sending and recieving the sms by an app in java
I want an app  in java that can recieve sms from the users and send the response back to the users.
       For eg i want the users to send the sms to a particular number say 5000 or 6000 and the app should recieve it and send back the response to the user itself. 
How to implement this in java and how could i use a number that could be used by the users to send the sms to the app? 
sending and recieving the sms by an app in java
===

I want an app  in java that can recieve sms from the users and send the response back to the users.
       For eg i want the users to send the sms to a particular number say 5000 or 6000 and the app should recieve it and send back the response to the user itself. 
How to implement this in java and how could i use a number that could be used by the users to send the sms to the app? 