My problem is. I am writing a program to make reservations. For this I use Filewriter and Buffered write to write it to a txt file. The input is trough simpleInoutDialog and It gives a string with the template hh:mm:ss.
This I write to the txt file along with a name
example:
08:00:00
Tom Hanks
06:20:00
Henry Bigs
What I’m trying to do is to sort the date so I can read it easily?
Any help?
Yes. Use log4j or slf4j or logback and make pattern:
Framework will sort messages for you.