You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
352 B
Java
11 lines
352 B
Java
5 years ago
|
import java.util.Calendar;
|
||
|
import java.util.Formatter;
|
||
|
public class MainClass {
|
||
|
public static void main(String args[]) {
|
||
|
Formatter fmt = new Formatter();
|
||
|
Calendar cal = Calendar.getInstance();
|
||
|
fmt = new Formatter();
|
||
|
fmt.format("%tB %tb %tm", cal, cal, cal);
|
||
|
System.out.println(fmt);
|
||
|
}
|
||
|
}
|