• Post Reply Bookmark Topic Watch Topic
  • New Topic

create Date objects with specific time elapsed  RSS feed

 
emmanuel sofela
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am being asked to create a Date object and set elapsed time using different values. Below is the code I have, but I noticed that the second method would not run and give output. I will appreciate explanation on what is wrong with the second signature and how to put it right. Thank you.

 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
emmanuel sofela wrote:I am being asked to create a Date object and set elapsed time using different values. Below is the code I have, but I noticed that the second method would not run and give output. I will appreciate explanation on what is wrong with the second signature and how to put it right. Thank you.


Can you show us the code that calls the second method?

Henry
 
Campbell Ritchie
Marshal
Posts: 56529
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

Are you specifically told to use java.util.Date? If not, avoid that class and find out about the date classes.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!