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 more

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 more