Created
September 4, 2013 00:35
-
-
Save khannedy/6431411 to your computer and use it in GitHub Desktop.
if expression di scala
This file contains 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
@Test | |
def testIfExpression() { | |
val name = "Eko" | |
val status = if (name == "Eko") "Akses Diterima" else "Akses Ditolak" | |
println(status) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment