Here you can find the source of getMinute(Calendar c)
public static int getMinute(Calendar c)
//package com.java2s; import java.util.Calendar; public class Main { public static int getMinute(Calendar c) { if (c != null) { return c.get(Calendar.MINUTE); } else {/*from w ww. ja v a 2s . c o m*/ return Calendar.getInstance().get(Calendar.MINUTE); } } }