Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Time calculation

 
Karthikayan Rajasekaran
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

In java, I have a one Map,for example

a=11:23:45
b=10:10:10
c=12:30:78
d=..........
e=.........
etc...

(Note:map size dynamically change)

In this Map, I need to find which key contains latest time(i.e. latestly created)?

Please help me , any one.

 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

We do not just hand out ready made answers here at the Ranch. Tell us what you think and we will help point you in the right direction.
As a first step, can you tell us, in plain english (forget code and algorithms for now) how you would solve this problem logically?

PS. This will be better suited on the beginners forum. Moving..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic