Write a Java program to display the system timeSample Output:
Current Date time: Fri Jun 16 14:17:40 IST 2017
public class Exercise46 { public static void main(String[] args){ System.out.format("\nCurrent Date time: %tc%n\n", System.currentTimeMillis()); } }
Sample Output:
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer