Delay for loop cycle in Java
问题 I am building an SMS messaging app, with a list of phone numbers in an array which I would like to send to. When I press the SEND button in the app, the message that I type would be sent to all the numbers in that array. I am using a for loop to run through the numbers and sending the same message to each of them: for (i=0; i<names.length; i++) { phoneNo = names[i][3]; sendMessage(phoneNo, message); } private void sendMessage(String phoneNo, String message) { try { SmsManager smsManager =