Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private long minutesAndSecondsToMilliseconds(String minutesAndSeconds){
- String[] timeParts = minutesAndSeconds.split(":");
- int minutes = Integer.parseInt(timeParts[0]);
- int seconds = Integer.parseInt(timeParts[1]);
- return (minutes * 60 + seconds) * 1000;
- }
Add Comment
Please, Sign In to add comment