This is a otp sender program in java You can simply use this
For use this you need a account in fast2sms.com they will provide an api key for you. Just paste that api in the 79th line and the number you want to send in the 80th line of OtpVerification.java.