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;
    }

}

What's the specific problem?

Line 12 is not a constructor

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.