Guest User

Untitled

a guest
Mar 17th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. private long minutesAndSecondsToMilliseconds(String minutesAndSeconds){
  2. String[] timeParts = minutesAndSeconds.split(":");
  3. int minutes = Integer.parseInt(timeParts[0]);
  4. int seconds = Integer.parseInt(timeParts[1]);
  5. return (minutes * 60 + seconds) * 1000;
  6. }
Add Comment
Please, Sign In to add comment