
[Kotlin] 코틀린 참고하기
·
Study/Kotlin
max / min: 최대값과 최소값을 구하는 함수fun main() { var i = 10 var j = 20 println("max: " + kotlin.math.max(i, j)) println("min: " + kotlin.math.min(i, j))} random: 랜덤한 값을 호출하는 객체import kotlin.random.Randomfun main() { println("randomInt: " + Random.nextInt()) println("randomInt: " + Random.nextInt(0, 100)) println("randomDouble: " + Random.nextDouble()) println("randomDouble: "..