kotlin - 함수 응용, 앨비스 연산자, when, if, else-if, Array, list, set, map
함수응용 fun plusTree(first: Int, second: Int, third: Int): Int{ return first + second + third } fun minusTree(first: Int, second: Int, third: Int) = first - second - third // 디폴트 파라미터 설정 fun multipleTree(first: Int = 1, second: Int = 1, third : Int =1) : Int{ return first*second*third } fun showMyPlus(first:Int, second: Int): Int{ println("ShowMyPlus First : " + first) println("ShowMyPlus Second : ..
2020. 6. 11.