task1813
2.3 Close the stream using the close() method
Requirements:
Don't change the main method.
MyComment: Really? How do we close the stream without running the close method we have created?
As of now,i feel like i really struggle with the topic of constructors and getters and setters even though i understand it. It's like i understand it but i can't feel it in order to execute properly. I feel though in the near future i will be able to come out of it with practice and develop it in such a way that my mind will solve questions like this unknowingly. If there's a book or topic if one can suggest then please go ahead and do so.
I will start reading all the books once i am done with the course which might take another month or so so (I decided to complete the course in two weeks which is not possible considering my college, gym, diet and personal life i hope i will be with it in a month and half ;).
If you struggle understanding this subject, here is a great example with explanation:
https://www.geeksforgeeks.org/decorator-pattern/
https://www.geeksforgeeks.org/the-decorator-pattern-set-2-introduction-and-design/?ref=rp
https://www.geeksforgeeks.org/decorator-pattern-set-3-coding-the-design/?ref=rp
Hints:
#3 super (fileName);
#4 Java String endsWith() method
#5 tableInterface.setModel(rows);
Hmm, tbh I had no problems with understanding tasks conditions so far. Yet, sometimes they do feel designed in a way that you have to think a bit about what you really have to do. But in my experience it adds to the learning process.
GO TO FULL VERSION