Here you can find the source of intConvertTime(int hour, int minut)
public static String intConvertTime(int hour, int minut)
//package com.java2s; public class Main { public static String intConvertTime(int hour, int minut) { StringBuilder time = new StringBuilder(); time.append(hour / 10 % 10);/* w w w .j a v a2s.c o m*/ time.append(hour % 10); time.append(":"); time.append(minut / 10 % 10); time.append(minut % 10); return time.toString(); } }