Skip to content

Instantly share code, notes, and snippets.

@khannedy
Created September 4, 2013 00:36
Show Gist options
  • Save khannedy/6431416 to your computer and use it in GitHub Desktop.
Save khannedy/6431416 to your computer and use it in GitHub Desktop.
if expression simple di scala
@Test
def testIfExpressionSimple() {
val name = "Eko"
println(if (name == "Eko") "Akses Diterima" else "Akses Ditolak")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment