Object-Oriented Programming with Java, part II – Exercise 1

Create the support method private static void printWithSmileys(String characterString) for the class Smileys which comes with the assignment template. The method is to print the given character string surrounded with smileys. Use the character string 🙂 as the smiley. My Code Smileys Model Code Comments OK, well that is a bit of a stuff up. …

Read moreObject-Oriented Programming with Java, part II – Exercise 1

Object-Oriented Programming with Java, part II – Exercise 5

In this exercise we are going to create a program that can be used to create and modify a to-do list. The final product will work in the following manner. My Code Main TodoList UserInterface Model Code Main TodoList UserInterface Comments OK, on my code side of things I have forgotten to remove some unneeded …

Read moreObject-Oriented Programming with Java, part II – Exercise 5

Object-Oriented Programming with Java, part II – Exercise 3

Let’s create an interactive program to control two liquid containers. The containers are named “first” and “second”. Each are capable of containing 100 liters of liquid at a time. My Code LiquidContainers Model Code LiquidContainers Comments OK, their way was slightly simpler but I wasn’t that far off. I seem to follow the instructions rather …

Read moreObject-Oriented Programming with Java, part II – Exercise 3