write a java program to use calendar class for printing current date
Answers
Answered by
0
Answer:
util. Date class, you can print current date and time in java. There are two ways to do so.
...
2nd way:
long millis=System. currentTimeMillis();
java. util. Date date=new java. util. Date(millis);
System. out. println(date);
Explanation:
please follow and brainliest
Similar questions