logo Practice-It logo

BJP3 Self-Check 8.7: Name

Language/Type: Java classes fields implementing
Author: Marty Stepp (on 2013/09/15)

Create a class called Name that represents a person's name. The class should have fields named firstName representing the person's first name, lastName representing their last name, and middleInitial representing their middle initial (a single character). Your class should contain only fields for now.

In order for Practice-It to properly test your class, make sure to use exactly the class name and field names described previously. Also make sure to declare your fields using appropriate types.

Type your solution here:

This is a class problem. Submit a complete Java class as described.

You must log in before you can solve this problem.

Log In

If you do not understand how to solve a problem or why your solution doesn't work, please contact your TA or instructor.
If something seems wrong with the site (errors, slow performance, incorrect problems/tests, etc.), please

Is there a problem? Contact a site administrator.