This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages 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: 11185
15
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