Day 12 of 100 Days of Java Coding

We are so back 😁 Day 12 of #100DaysOfCode Two weeks of exams slowed me down but today I finally got to do what I have been itching to do the whole time. We are picking up exactly where I left off. Today was a big one, a lot of revision was needed. After my revision, I had to go deeper into these topics: 1. ArrayList, I like to think of these as arrays that we can add or shrink as we add or remove items. Also the wrapper classes, they contain are full objects which allows us to do so much cool stuff like the "add" method which is similar to "append" in python and many others. 2. Generics, when we use generics we are kind off telling the ArrayList to only store a certain type of object. 3. Exceptions, this explains how java handles errors and my role as a developer in that process. I also love how Chris (BroCode) teaches this topic in particular. He continually emphasizes on the importance of letting users understand what exactly went wrong when a program crashes. Now File handling, writing files: ✅ FileWriter, this is perfect for writing small text files. ✅ BufferedWriter, this is much faster and perfect for larger sized text files. ✅ PrintWriter, I learnt this is best for structured data. ✅ FileOutputStream, this is also good for binary files. Reading files was a bit different as I had to combine BufferedReader and FilerReader. The more code I wrote, the more exceptions popped up, and the more knowledge I have gained. Today felt amazing. This is exactly where I want to be. Day 12 done. I will upload the pictures soon. Still studying! #100DaysOfCode #Java

To view or add a comment, sign in

Explore content categories