Created
June 8, 2020 07:23
-
-
Save adryanev/a9064b382327d08d45f472221237df33 to your computer and use it in GitHub Desktop.
Operator In pada Kotlin
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
package operator_casting | |
class OperatorIn { | |
companion object{ | |
@JvmStatic | |
fun main(args: Array<String>) { | |
val bilangan = intArrayOf(1,15,-2,50) | |
if( 15 in bilangan){ | |
println("15 ada di dalam bilangan") | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment