NameAndAddress - /* / NameAndAddress.java Author:...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
//****************************************************************************** // NameAndAddress.java Author: Lewis/Loftus // // Represents an address book entry used to store names and addresses. //****************************************************************************** / import java.text.*; i public class NameAndAddress { private String firstName = ""; private String lastName = ""; private String address = ""; private String city = ""; private String state = ""; private int zipCode; private long phoneNum; private static DecimalFormat form = new DecimalFormat("00000"); //--------------------------------------------------------------------------- // Sets up the adress book entry by entering the first and last // name and the zip code //--------------------------------------------------------------------------- public NameAndAddress (String fName, String lName, String addr, String cit, String st, int zCode, long pNum) { firstName = fName; lastName = lName; address = addr; city = cit;
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

NameAndAddress - /* / NameAndAddress.java Author:...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online