0

Need help with a program that represents names
The rubric is found here: ftp://ftp.aw.com/cseng/authors/lewis/jss3/HTML_Labs/ch4/Names.html

this is what I have done right now, but my lab partner and I are STUCK, any help we receive would be appreciated

// ****************************************************************
// Name.java
// ****************************************************************
import cs1.Keyboard;

public class Name
{
    //declare instance data
    public String first, middle, last;
    
    //constructor
    public Name (String first, String middle, String last)
    
    //returns the first name
    public String getFirst()
    {
        return first;
    }

    //returns middle name
    public String getMiddle()
    {
        return middle;
    }

    //returns last name
    public String getLast()
    {
        return last;
    }

    //returns string containing the person's full name in order
    public String firstMiddleLast()
    {
        
        return firstMiddleLast;
    }

    //returns a string containing the person's full name: last, first middle
    public String lastFirstMiddle()
    {
        return lastFirstMiddle;
    }

}
3
Contributors
2
Replies
3
Views
10 Years
Discussion Span
Last Post by peter_budo
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.