I have one input String to the program and I need to execute this String into my method, but I want to execute it if the character String is less than or equal to 20 characters, so I want to split this String into multiple Strings if the string is longer than 20 characters.
That is, the number of characters input String is 90 characters then become a 5 String 20 + 20 + 20 + 20 + 10 = 90.
I need each 20 characters String and last String do this code:
try {
            enMessage = AES.encrypt(key, message);
            sendSMS(contact, enMessage);
        } catch (Exception e) 
so its could make each 20 characters is one message.
 
     
     
     
     
     
    