Object-Oriented Programming with Java, part I – Exercise 50

This program takes user input and then uses a loop to print the first three characters of the input. If there are less than three characters it outputs nothing. My Code Model Code Comments Although achieving the same result I quite like a few things about the model code that I don’t have in mine. […]

Object-Oriented Programming with Java, part I – Exercise 49

This program takes user input of a String then calls a method to determine the last character of the String and outputs the result. My Code Model Code Comments Again, the only difference between my code and the model code is the placement of the method.

Object-Oriented Programming with Java, part I – Exercise 48

This program take the user input of a name and then calls a method that returns the first letter of that name to be displayed. My Code Model Code Comments Although my code and the model code are the same, the model code has the method before the main program whereas mine has it afterwards. […]