Reading and writing to a file: CodeGym

  • 20
  • Locked
Implement the logic for file IO for the CodeGym class. The file your_file_name.tmp can contain several CodeGym objects. The main method exists just for you and is not involved in testing the solution.
You can't complete this task, because you're not signed in.
Comments (7)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Justin Smith
Level 38 , Greenfield, USA, United States
16 November 2021, 23:05
Getting this one in 1 attempt is virtually impossible, there's a hidden condition you would never expect (birthdate must be accurate to the millisecond).
Dave Andrea
Level 41 , Canada
25 August 2020, 18:52
Also, be careful if using Boolean.getBoolean(); It didn't behave the way I assumed it did and I wasted a ton of time.
Level 26 , Orlando, United States
7 July 2020, 23:15
LOL never thought I can pass with 2 attemps, be careful when parsing the Date, using debugger to see it clearly if you don't know why having error.
Patrick Moreland
Level 27 , Kirkland, United States
15 April 2020, 20:56
Be sure to store and retrieve the birthDate in milliseconds. It doesn't say that in the conditions, but validation will fail if you store only the day, month and year.
22 March 2021, 21:51
Thank you sir! Most appreciated!
Julián Orellana
Level 20 , Guayaquil, Ecuador
6 March 2019, 17:42
help me , i have a error. when i compile my code, this error occurs Check why an exception occurs in the save/load methods. -----------------------------------------------------------------------------------------------------------------------------
Level 41
7 March 2019, 07:00
If you need help, something isn't right in your code, the server won't accept your solution (even if you are 100% sure that it is correct). Describe your question/issue in the HELP section at