*******************************************************************
COMPLETE SOURCE CODE FOR : GetCurrentTime.java
*******************************************************************
import java.util.Date;
public class GetCurrentTime
{
public static void main(String[]args)
{
Date myDate=new Date();
System.out.println(myDate.getHours()+":"+myDate.getMinutes()+":"+myDate.getSeconds());
}
}
*******************************************************************
JUST COMPILE AND EXECUTE IT
*******************************************************************