Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Assingnment 1.8 - Date question

 
KevB
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the hints for assignment 1.8 it is suggested that we get to know the date class. I started out using it, but a lot of the methods in Date are deprecated. Everytime I ran my application I got warnings.
Can this assignment be done with GregorianCalendar? What class is the best to use now?
 
paul wheaton
Trailboss
Pie
Posts: 21385
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Date will do everything you need to complete the assignment. Without using deprecated stuff. No need for GregorianCalendar.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic