>>Get current second
>>Get current hour
>>Get current computer time in java
*******************************************************************
COMPLETE SOURCE CODE FOR : GetCurrentMinute.java
*******************************************************************
import java.util.Date;
public class GetCurrentMinute
{
public static void main(String[]args)
{
Date myDate=new Date();
//Get current minute
int currentMinute=myDate.getMinutes();
//Print current minute that we get
System.out.println("Current minute is : "+currentMinute);
}
}
*******************************************************************
JUST COMPILE AND EXECUTE IT
*******************************************************************