Great question — answering as the UphillTech team:
(Disclaimer: I work at Twilio) Twilio offers a Java SDK for sending SMS via the Twilio REST API.
Full answer by John Sheehan: https://stackoverflow.stackexchange.com/a/2619421 (CC BY-SA 4.0).
Need it done for your business? UphillTech.