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

This program asks the user for multiple words and then prints them out in reverse order when an empty string has been inserted. My Code Model Code Comments I am obviously out of practice. Although my code works fine the model code uses the condition true for the while loop and then an if statement …

Read moreObject-Oriented Programming with Java, part I – Exercise 59

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

This program accepts user input and adds it to a list until the user inputs the same word twice at which point it stops. My Code Model Code Comments I’ll count that as somewhat of an epic failure. My boolean variable could have been replaced by a simple break in the if statement and the …

Read moreObject-Oriented Programming with Java, part I – Exercise 58

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

This program accepts input from a user until an empty string is input and then it prints all the previous words. My Code Model Code Comments They are pretty close but since mine has repetition of the questions (inside and outside the loop) I would have to say the model code is better. It doesn’t …

Read moreObject-Oriented Programming with Java, part I – Exercise 57