Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Person
- {
- String firstName;
- String lastName;
- public Person(String fName, String lName)
- {
- firstName = fName;
- lastName = lName;
- }
- public String toString()
- {
- return firstName + " " + lastName;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement