Your own implementation

  • 14
  • Locked
Implement the following methods: 1. readBytes - must return all of the bytes in the fileName file. 2. readLines - must return all of the lines in the fileName file. Use the default encoding. 3. writeBytes - must write a byte array to the fileName file.
You can't complete this task, because you're not signed in.
Comments (4)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Level 40 , USA
21 June 2021, 17:47
If working on this task in IntelliJ IDEA, make sure you turn off the 'Optimize imports on the fly' option in the Editor settings. Otherwise, you will be left with a List and IOException imports from the start and will wonder how the hell you're supposed to read/write to files with that :)
Level 29 , Seattle, United States
14 June 2019, 18:09
I really like this activity. It would be helpful to have something like this for every method in every new API that is covered.
Level 25 , Lucca, Italy
12 January 2021, 14:11
I agree
Level 41
15 June 2021, 07:04
Yeah, I really liked it too!