Java tutorial
//package com.java2s; public class Main { private static int minuteOfTime(String time) { String minute = time.split(":")[1]; return Integer.parseInt(minute); } }