Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package friscocommunitybank;
- public class CustomerAddress {
- int number, zip;
- String street, city, state = ("");
- CustomerAddress(int num, String streetName, String aCity, String st, int zp){ // create 5 argument constructor
- number = num;
- street = streetName;
- city = aCity;
- state = st;
- zip = zp;
- }
- public void printAddress() { // create print address method
- System.out.println("Address is: \n" + number + " " + street + "\n" + city + ", " + state + "-" + zip);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement