# GetAddress Implement _retrieveAddress_ by using the library functions _getStreet1_, _getStreet2_ and _getStreet3_. ```scala case class Address( street1: String, street2: Option[String], street3: Option[String] ) // TODO: Implement def retrieveAddress: ??? = { } // Library functions /** * Retrieves the main street address. * * @throws RuntimeException if empty */ def getStreet1: String = { // implementation } /** * Retrieves additional street address line 2. * * @throws RuntimeException if empty */ def getStreet2: String = { // implementation } /** * Retrieves additional street address line 3. * * @throws RuntimeException if empty */ def getStreet3: String = { // implementation } ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up