Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

[세미나] 직장인 3. 나의만족

val m = mapOf<String, Int>(
        "일이좋다"   to 25,
        "자부심"     to 30,
        "높은연봉"   to 25,
        "유명회사"   to 20,
        "야근당연"   to -70)

var 나의만족 : Int = 0
    set (n : Int){
        field += n
    }

fun main(args: Array<String>) {
    나의만족 = m["일이좋다"]!!
    나의만족 = m["자부심"]!!
    나의만족 = m["높은연봉"]!!
    나의만족 = m["유명회사"]!!
    나의만족 = m["야근당연"]!!

    println(나의만족)
}

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.