My java task is to write a code that sorts dates from a text, using readline. so 1/04/2005 is good, not 22/44/1555.... exceptions perhaps...

if anyone is free to help me, please mail or aim(acumenred)

Recommended Answers

All 3 Replies

that is awesome... :D... so what have u done so far?

Some good examples how to work with date can be found here in Java's subsection Date and Time

Read the API for SimpleDateFormat and its setLenient method.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.