Current time and date.


For finding the current time and date.
import java.util.*;
// open source
// author@lol ik
public class Main
{
public static void main(String[] args)
{

Scanner input = new Scanner(System.in);
       Date a=new Date();
  System.out.println("The current date and time is "+a.toString());

}
}
Posted by lol ik

Comments

Popular Posts