{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Lab04d - System.out.println(person.getFirst...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//© A+ Computer Science - www.apluscompsci.com //Name - //Date - //Lab - import static java.lang.System.*; public class Lab04d { public static void main ( String[] args ) { Name person = new Name("Sally Baker"); System.out.println(person.getFirst()); System.out.println(person.getLast()); System.out.println(person); person.setName("John Doe"); System.out.println(person.getFirst()); System.out.println(person.getLast()); System.out.println(person); person.setName("Sammy Lammy");
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: System.out.println(person.getFirst()); System.out.println(person.getLast()); System.out.println(person); person.setName("Benny Programmer"); System.out.println(person.getFirst()); System.out.println(person.getLast()); System.out.println(person); person.setName("Sandy Painter"); System.out.println(person.getFirst()); System.out.println(person.getLast()); System.out.println(person); } }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online