Your own FileWriter

  • 20
  • Locked
Implement FileConsoleWriter's logic. The FileConsoleWriter class must have a private FileWriter field called fileWriter. The FileConsoleWriter class must have every constructor used to initialize fileWriter for writing. The FileConsoleWriter class must have five write methods and one close method: -
You can't complete this task, because you're not signed in.
Comments (5)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
matemate123
Level 37 , Kraków, Poland
31 January, 21:40
It's not difficult, it's just unfamiliar
Justin Smith
Level 39 , Greenfield, USA, United States
1 November 2021, 03:22
Not really that difficult, just a bit tedious.
Jurij Thmsn
Level 29 , Flensburg, Germany
19 April 2021, 13:56
if FileConsoleWriter extends FileWriter, you can override methods and delete the extension afterwards. This way IntelliJ does half the job 😎
Mike S
Level 28 , Saint Louis, United States
16 March, 18:30
Hi Jurij, obviously I know how to make FileConsoleWriter inherit FileWriter, but when I do that, it doesn't give me a tidy option to override all of its classes. Tried right-clicking and such around it and doesn't give me that option : / ...
Mike S
Level 28 , Saint Louis, United States
16 March, 19:19
Never mind... "ctrl + O" for any other nerds who didn't just Google it first