|
Wyo Java Ch3Proj1 |
|
Write a class named Word that includes a String as its only property. And, add appropriate constructors and the following methods to the Word class: String getWord() - an accessor method that returns the String property of the Word object String
getFirstLetter() -
returns the first letter of the Word object. Write a class named WordTest that constructs 1 or more Word objects with words inputted by the user. Use the Scanner class to get the user's input. The client program must use each method from the Word class and display annotated output so that the instructor can easily tell that the methods work properly. Your program must follow the class Coding Standards. Save all of the files in the appropriate network folder. Preconditions:
You must hand in the following on separate pages stapled in this specified order:
|