package Ġstud yn ote Ċ Ċ import Ġandroid . os . Build Ċ import Ġandroidx . annotation . Requires Api Ċ Ċ /** Ċ Ġ* ĠCreated Ġby Ġjs xia osh ui Ġon Ġ 2 0 2 1 / 8 / 9 Ċ Ġ*/ Ċ @ Requires Api ( Build . VERSION _ CODES . N ) Ċ fun Ġmain () Ġ{ ĊĠĠĠ Ġprintln (" ------------- ä¸įåı¯ åıĺ List ------------------ ") ĊĠĠĠ Ġval Ġlist = ĠlistOf (" j ason "," jack "," jar on ") ĊĠĠĠ Ġval Ġ( x , y , z )= list ĊĠĠĠ Ġprintln ("$ x ,$ y ,$ z ") ĊĊĠĠĠ Ġprintln (" ------------- åı¯ åıĺ List ------------------ ") ĊĠĠĠ Ġval Ġmutable List = Ġmutable ListOf (" Jack "," R ose "," O wen ") ĊĠĠĠ Ġmutable List . add (" xia of eng ") ĊĠĠĠ Ġprintln ( mutable List . toString ()) ĊĊĠĠĠ Ġprintln (" ------------- ä¸įåı¯ åıĺ map ------------------ ") ĊĠĠĠ Ġval Ġmap = Ġmap Of (" Jack " Ġto Ġ 2 0 ," R ose " Ġto Ġ 2 3 ," O wen " Ġto Ġ 3 0 ) ĊĠĠĠ Ġprintln (" ------------- åı¯ åıĺ Map ------------------ ") ĊĠĠĠ Ġ// åı¯ åıĺ Map ĊĠĠĠ Ġval Ġmutable Map = Ġmutable Map Of (" Jack " Ġto Ġ 2 0 ," R ose " Ġto Ġ 2 3 ," O wen " Ġto Ġ 3 0 ) ĊĠĠĠ Ġmutable Map +=" j im my " Ġto Ġ 2 8 ĊĠĠĠ Ġmutable Map . put (" j im my ", 3 0 ) ĊĠĠĠ Ġmutable Map . get OrDefault (" R ose ", 1 8 ) ĊĠĠĠ Ġprintln ( mutable Map ) ĊĠĠĠ Ġprintln (" ------------- éģįåİĨ Map Ġstyle 1 ------------------ ") ĊĠĠĠ Ġ// éģįåİĨ Map Ġ æĸ¹å¼ı ä¸Ģ ĊĠĠĠ Ġmutable Map . forEach Ġ{ Ġkey , Ġvalue Ġ-> ĊĠĠĠĠĠĠ Ġprintln ("$ key ,$ value ") ĊĠĠĠ Ġ} ĊĠĠĠ Ġprintln (" ------------- éģįåİĨ Map Ġstyle 2 ------------------ ") ĊĠĠĠ Ġ// éģįåİĨ Map Ġ æĸ¹å¼ı äºĮ ĊĠĠĠ Ġmutable Map . forEach Ġ{ ĊĠĠĠĠĠĠĠ Ġprintln ("${ it . key }, ${ it . value }") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprintln (" ------------- ä¸įåı¯ åıĺ Set ------------------ ") ĊĠĠĠ Ġval Ġset = Ġset Of (" j ason "," jack "," jar on ") ĊĠĠĠ Ġprintln ( set . toString ()) ĊĠĠĠ Ġprintln (" ------------- åı¯ åıĺ Set ------------------ ") ĊĠĠĠ Ġval Ġmutable Set = Ġmutable Set Of (" j ason "," jack "," jar on ") ĊĠĠĠ Ġmutable Set . add (" xia of eng ") ĊĠĠĠ Ġmutable Set . add (" jack ") ĊĠĠĠ Ġprintln ( mutable Set . toString ()) ĊĊ Ċ }