Advertisement
vp0415

lec2.5.2

Oct 12th, 2014
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1. public class DateTest {
  2.  
  3.     public static void main(String[] args) {
  4.         Date date1 = new Date(10 , 11 , 2014);
  5.        
  6.         System.out.printf("Month: %s\n", date1.getAMonth());
  7.         System.out.printf("Day: %s\n", date1.getADay());
  8.         System.out.printf("Year: %s\n", date1.getAYear());
  9.         System.out.println(date1.dysplayDate());
  10.  
  11.     }
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement