Kotlin 1. 변수와 자료형 Kotlin의 경우 기본적으로 두 가지 형태(val, var)의 변수가 존재한다.
오늘 간단하게 Kotlin을 활용한 숫자야구 게임을 만들다가 중복된 숫자 없는 n자리 숫자를 만드는 함수를 작성하게 되었다. 해당 문제에서는 자리수가 적어 상관이 없겠지만 자리수가 많아지는 경우에 어떻게 하면 비교적 효율적으로 작성할 수 있을 지 고민해보았다. 가장 쉽
Kotlin을 써서 어느정도 간단한 프로그램들을 몇 개 개발하다 보니 처음 왜 Kotlin이어야 할까 하는 생각이 들었다. 단순히 요즘 나온 언어이고, Java를 대체하고 있다라는 말만 들어서 막연하게 시작했던 것이지 왜 Java를 대체하고 있고, 요즘 나왔다면 어떤