Advertisement
wicastle

Untitled

Dec 9th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. package date_array;
  2.  
  3. public class DateArray
  4. {
  5. static MyDate a0 = new MyDate("May", 16, 1984);
  6. static MyDate a1 = new MyDate("November", 14, 1978);
  7. static MyDate a2 = new MyDate("September", 21, 1980);
  8. static MyDate a3 = new MyDate("July", 3, 1987);
  9.  
  10. static MyDate[] dateArr = {a0,a1,a2,a3};
  11.  
  12. public static void main(String[] args)
  13. {
  14. for(int i = 3; i >= 0 ; i--)
  15. {
  16. System.out.println(dateArr[i]);
  17. }
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement