Creating an array (and ArrayList) of objects from a text file: Object-Oriented Programming with Java

preview_player
Показать описание
This series of videos is suitable for programmers with some programming or Java experience who want to learn object-oriented programming and dig deeper into some other Java features. This video uses the Proverb class that was written in the video on creating a simple class in Java and fills an array with objects of that class. The object data is read from a text file. The program is then modified to use an ArrayList rather than an array. This video is suitable to watch after reading Chapters 0-2 of Java, Java, Java: Object-oriented problem solving, by Morelli, Walde, and Hoffman. However, the video is very straightforward and can also stand alone or accompany any other textbook that has introduced classes. Let's have some fun learning to program in Java!

The video in which we create the simple Java Proverb class from a UML spec is here:

You can practice writing the array code from the video here*:

You can practice writing the ArrayList code from the video here*:

The code and text file from this video, along with the Proverb class, are in my github repository, available here:

You can access the Java, Java, Java book here:

If you want to earn credit for learning to code, take an online course at CCRI! These videos are part of the Advanced Java course:

00:00 An array with one object in the debugger
07:15 Reading a textfile into an array of objects
13:06 Reading a textfile into an ArrayList of objects
Рекомендации по теме
Комментарии
Автор

Ma'am, you just saved me from a hell of fruitless researches! Thank You!

frantzyisrael
welcome to shbcf.ru