Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class DateTest {
- public static void main(String[] args) {
- Date date1 = new Date(10 , 11 , 2014);
- System.out.printf("Month: %s\n", date1.getAMonth());
- System.out.printf("Day: %s\n", date1.getADay());
- System.out.printf("Year: %s\n", date1.getAYear());
- System.out.println(date1.dysplayDate());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement