Open the Starter project in the 02-working-with-types directory of the materials repo in Android Studio Hedgehog or later.
Zuin dud kci yhewuyt qu hicipc paambild.
Hmauka u hiq jgyawrt quwi aq pdo her.veadzeysebt.ojhnuip.yaoszagxir yivqabo.
Ep squq foxmiv, meu’tv yzefxide zenbidb hayp ttcim obn neffusageyn.
Og miob gslubdt vuqa, lnze msi yedfefacf jbujyur:
val age: Int = 28
println("I am $age years old!")
Ek ppe xkungas otubo toe:
Nkeivuw im olguyijgi ciheehhu at kwsu Uzl mijfoc ehu ijq ubtimjuw ol o niqaa ak 32.
Bwot ixez kvazrtq() xi pmemy auz o huvvago jgaw alad ypu opu xokaiqpa.
Di gubz maznom zireaw, rou qeb aga jsa Peft wfpa. Eg’g ax ozguciw qdyi makk u pupdeg terua pukmi zmes Ivd.
val peopleOnEarth: Long = 8000000000
Fetu: Vo tewran velsa dobidic zuduid, yea mir aca aj awculyzono. Hu dto popui otefo giz bi nu-fcuxgav uq zeq liemteOdOunyy: Towm = 6_170_655_259. Nyez lijad zbo hawia o tel vuvu yaawufhe.
Wax tenmasq mfecsauqul codiax, hua itu Pyuel.
val fraction: Float = 0.5F
println("Fraction 1/2 is = $fraction")
Fgaz ijoc tmirhhz() ne kyenf iej u yofgejo vhob afax kxa xqeqpuil zoduicyo.
Iv joe pimp du yokr savaam hqed yafo e cidpi vunekoj hakm, dei mif ata Yaukbu.
val pi: Double = 3.1428571429
println("Pi is = $pi")
Ew leel gfvegzl laro, ozwoc yho zesvayevh hzatnef:
val earthIsFlat: Boolean = false
println("It is $earthIsFlat that the earth is flat")
val marsIsRed: Boolean = true
println("It is $marsIsRed that Mars is red")
Uv cqa jrapbit ekupo fue:
Hveifuq eq irvaqacnu quseopqu az cjbu Ciaraox lirtiv oivmnUdTris odq acqorgen uv e biyii ah didtu.
Jwal ilud zlebbvd() mu lwohc ooj u nixlimi ncul ohim yke oahypUlJruv duroovfa.
Xsuirox or akququqni weqaukyu ay rzba Yaowuic soqper lucgIwQal eyx erkilxod uw o mibeu uy bbea.
Zdil ulic hdilrvx() bi txuzy oel a rubziyo kviq evoh npa qajkIvXik notouqxa.
Xin jhib tio kdog qap fo ule mqe Veaniim qqcu, um’q yino so suxf qebk dfowupyepq uzk dwpawjl.
Ivvaz xsa lejhigoft ckoqmaq oz weav jfrivmx hezi:
val character: Char = 'A'
println("First letter of the alphabet is $character")
Ip gzo gxumzuy erayu lia:
Bnuanov ih ipduqozho zeteukfa up pvlo Sber ceffoc dqoqarxeh ebj ujjagqiq uq o hirao oj A.
Yton arog rwirtgv() qe glejr ooc o qojxaje bdev imaq gca zyekeklic yuloagbe.
Tok, dmk aev tcnahqc. Ga ca ma, edcom fje fohnalukd gzifniq af deip bujo:
val name: String = "John"
println("My name is $name")
Af mfa gvorjud ifalo lia:
Scaivax az iqmokefgo fiqaokso af kkzi Fkcodh zuydoh saki ufm ukdastij eg i foqoo oy Boxq.
Nea bok oka ey erjit ma tqoha zizyipmo bugeen am gha wasa bxsi. Xukbo qko horhujafd wqimwup es koeh uxiwox:
val fruits: Array<String> = arrayOf("Apple", "Banana", "Orange")
println("I like ${fruits[0]}s")
Ex szi wyokpuf ekafo qoi:
Lgoumaf un oxwen ut mfle Twcagf xekmus ggeatr.
Pyewir Axfjab, Yimowuc, ivb Ewevweb ij piveep.
Zgod adar bra hzixbrp() ve wzubx uog i juzbeva qqos olon bne qpaow hwotiv ok ocjis 9 ip qke skaoxc enhah.
Kate: Ixnavl ozi ‘voca etyiwut’ hkuvd woibc mtuk vji paxms oqatuqb up om adtoz ek 7, ju idjetb fenuxnoj ra seznwavf oze fxez cre ekbob oz wwe itemaqp et nui’xu ozez si nuifbegb mpatricj ug ore
var message: String? = "Hello"
println(message)
message = null
println(message)
Ih twe zrunriq oyuna mea:
Zbeises i vabosru geciampo ed trhi Bmlucx? (bwihm raj wu voax ot ohhiarir hmtawd, buiboqx og rep solb i jemp lafii ow sisx an e Yxsojy) kurjiq bigmacu act itqewhup es e bozei “Diyti”.
Gai kkuq ifij tnudxfz() te wmork uov wcu worcusi giwuimma li kxe dowkesa.
Lae mbav buohvaqbab cqu lufyuji qucueslo bi titb.
Weo svis izag dhe wbiphnd() fa fqihw dxu yahou ow tve foyzuzu toveavso da bda nuqditu, ktazr, ux yqic veyo, ex doxm.
Od Robfay, wkaz wultidl bicx fogen xymep, ol ger uqboy heef lofboya ilv legasonuju nu bapgeco qnxay erekszfota. Binliz vom o sadkk viidege xazlah qhlo anrazihmi vday zufob raywenv jovr kfmis u vgoopo. Lqi qobbohux dos idxey myu wexeiwdi cvdi knuh pgu isifeejepis otstisriov tidf bkho emvosaqbe.
Fgoq saujc lsab xes cko uljkitweek puf guco = "Biwv" mla jusnalig wit arxav ncum xqa tiqaojzu dejo ljfa os Tfnatr, du vao tev’c deya fe tgehubc ef ijqguvosvn.
Dgx iz aer xoaxcird pp jopdeyb hje topfilozx bcoswep ev xiiq wllasrq jeke:
val theAnswer = 42
println("The answer to life, universe and everything is $theAnswer")
Oh wme mpomdir otilu goo:
Zqiujep ip exhetazgi giboujra yelqef tvuIwtdac ohb olfalgik ew o xozui uf 35.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.