Created
September 11, 2017 16:33
-
-
Save adam-arold/5416e0d1aa9134b7036ff2af09e207a1 to your computer and use it in GitHub Desktop.
Java user
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class JavaUser { | |
// ... | |
private final String firstName; | |
private final String lastName; | |
private final List<Address> addresses; | |
public Address getFirstAddress() { | |
Address firstAddress = addresses.get(0); | |
return firstAddress; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment