Here you can find the source of minutesToString(Integer minutes)
public static String minutesToString(Integer minutes)
//package com.java2s; //License from project: Open Source License public class Main { private static final String timeFormat = "%sh%sm"; public static String minutesToString(Integer minutes) { assert (minutes != null); int hours = minutes / 60; minutes = minutes % 60;//from www . java2 s.c o m return String.format(timeFormat, hours, minutes); } }