Nullable / NonNull 출처 https://www.youtube.com/watch?v=IDVnZPjRCYg&t=8s [Code with Joyce] NPE: NULL pointer Exception 데이터 타입에 ?를 붙임으로서 null이 가능한 변수임을 명시적으로 표현 코틀린은 기본적으로 NonNull 타입 ?. 연산자는 변수가 null 이 아닐때만 오른쪽 함수를 실행하고 null 이면 null을 반환 fun main(){ nullcheck() } fun nullcheck(){ var nullName : String = null // Null can not be a value of a non-null type String 에러발생 // ?를 사용하여 null이 가능한 변수임을 선언해야함 //..