How to Delete or Remove Lines From a Text File

Поделиться
HTML-код
  • Опубликовано: 11 янв 2025

Комментарии • 9

  • @Hritikesh-p7q
    @Hritikesh-p7q 5 месяцев назад

    Hi erb.what do you mean by 'New ArrayList '?

    • @erbcomputerscience
      @erbcomputerscience  5 месяцев назад

      That is how you dimensionalize an ArrayList or in other words create an ArrayList. You cannot do it without the keyword new. In this video I did not use an ArrayList but choose to use an array. I was just showing it was also possible to accomplish the same with an ArrayList. Does that make sense?

  • @Saad-v4d
    @Saad-v4d 5 месяцев назад

    hi erb. is this in the syllabus for 9618?

    • @erbcomputerscience
      @erbcomputerscience  5 месяцев назад

      Reading, writing and appending text files are on the 9618 curriculum. It is a question that could show up on Paper 2 and students often have to work with one on Paper 4. Is deleting a line of text on the curriculum? No. However, Cambridge often writes questions where students have to problem solve and use tools as a work around and I could see them asking a question like this in the near future.

    • @Saad-v4d
      @Saad-v4d 5 месяцев назад

      @@erbcomputerscience fair enough. earned yourself a sub.
      keep it up brother

  • @reflectmirror6371
    @reflectmirror6371 5 месяцев назад

    Hi sir. Do you think oct/Nov exams will be as difficult as May/June 2024 exams. What do you think Oct P42 may contain?

    • @erbcomputerscience
      @erbcomputerscience  5 месяцев назад

      I think there will definitely be working with a text file, specifically reading from it and doing something with the data. That could be a bubble sort, insertion sort, implementing a queue, stack or even object oriented programming. Speaking of OOP those questions are very common and worth a huge amount of points. For OOP you'll need to be familiar with set and get methods, constructors, inheritance and polymorphism as well as creating an array of objects.
      Will it be as hard as May/June exams. It will be on the same level, but the more prepared you are the more manageable it becomes.
      OOP is almost certain. 1 of the 4 ADTs is also almost certain - stack, queue, linked list or binary tree. I imagine there will also be some type of search - linear or binary. Make sure you know how to do a recursive binary search because I doubt a standard binary search is what Cambridge is going to ask for.
      If you are feeling stressed keep in mind that November is still over 3 months away and that is plenty of time to get ready. My advice is to start where you are weakest and study that. After a week you'll see growth and you'll no longer be weak in that topic. Go through and find where you are weakest again and focus on that topic. Remember, these tests are hard but not impossible. Lots of students before you have done it and lots after you will do it. You can do this! Believe in yourself, invest time in yourself and you'll come out the other side with smiles.
      Please let me know if you have any questions and I'll do my best to help you out. I would say good luck, but it seems you won't need it! Go conquer that test!

    • @reflectmirror6371
      @reflectmirror6371 5 месяцев назад

      @@erbcomputerscience Thank you, sir 🙏. I've been studying diligently every day, but as the exams are getting closer, I'm starting to feel quite stressed about all the subjects. I'm studying Computer Science, Maths, Accounting, and two AS levels-General Paper and French. While I feel confident about most of the papers, I'm particularly worried about P4.

    • @trainwithzee
      @trainwithzee 5 месяцев назад

      Hello sir could you do a walkthrough on 9618 mj 41 22 question 1 specifically