Three collaborating objects and the iterator pattern in Java: Object-Oriented Programming with Java

Published: 21 October 2022
on channel: DesignCodeDebugRepeat
343
3

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 the code from the video on filling an array of objects from a file. In this video we build some of the game system around the Proverb class by creating a Proverb Manager and a ProverbGame class. We use the iterator pattern in the ProverbManager to allow access to the proverbs. This video is suitable to watch after reading Chapters 0-2 of Java, Java, Java: Object-oriented problem solving, by Morelli, Walde, and Hoffman and with a little knowledge of different ways objects can collaborate in object-oriented systems. However, the video is very straightforward and can also stand alone or accompany any other textbook that has introduced classes and object-oriented design. Let's have some fun learning to program in Java!

Here's the video creating the Proverb class:
   • Creating and documenting a simple cla...  

Here's the video creating the array and ArrayList of objects from a file:
   • Creating an array (and ArrayList) of ...  

You can practice writing the ProverbManager from the video here*:
https://codecheck.io/files/2210182214...

You can practice writing the ProverbGame from the video here*:
https://codecheck.io/files/2210182229...

You can practice writing the ProverbManagerIterator from the video here*:
https://codecheck.io/files/2210182234...

The code and text file from this video, along with the Proverb class and classes from the array/file reading video, are in my github repository, available here:
https://github.com/ProfessorBurke/Jav...

You can access the Java, Java, Java book here:
https://runestone.academy/ns/books/pu...

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:
https://ccri.edu/comp/

*The CodeCheck system courtesy of Cay Horstmann, https://horstmann.com/codecheck/

00:00 Writing the ProverbManager class
05:44 Writing the ProverbGame class
08:01 Using an Iterator object


On this page of the site you can watch the video online Three collaborating objects and the iterator pattern in Java: Object-Oriented Programming with Java with a duration of hours minute second in good quality, which was uploaded by the user DesignCodeDebugRepeat 21 October 2022, share the link with friends and acquaintances, this video has already been watched 343 times on youtube and it was liked by 3 viewers. Enjoy your viewing!