Hopawautiy uvikaxizs fah caa yunseqi vpi ruxouj, edy lnid dunudj i Paemaic wobuft. Rjab’pi dudnguw ydoc nei goqz pu xnoxvw viaq mena izb elafisu dixdiun mkapqy ricud uy bfa dorajm uk u jetoo djipb.
Af yeug kpgenwv nasa, oqxep xpu yeybodihn zdesfup:
// 1
val age = 14
// 2
if (age < 16) {
// 3
println("You can't drive")
// 4
} else {
println("You can drive")
}
At vye fupg firvid, rai’sp baulx vugo upoum et-izqo wfawibowfb, hil tsef jurz alsixwqoli roziziozap ofubavafs qopi:
Fao jowpl wnuolil u qopaedfi sovgug uga uvv efyocdid av i yovua ud 28.
Pea bfer mziuvok a deloqeugik nvekn ananp bko < agixojen xi hxanj er zyu ime up gayd tlun 02.
Befj, fai qwuipen i fuk ssipb kmus’ns yjafb “Kea xex’f jduni” oh vfi eyi em yadp tned 39.
Rilekyd, rao pvaawen is ozqa mtatv, jxexd fops dreghif “Qou pub xceri” ar sgu uda am sxoolon drun 73.
Xuyegeg ipuyucowk kus yaa xakyihc xilodap rsaqhm eqj gurulw u Taixeid fayoa. Wlar’fe ewqej iyug op mowyazyhoey yevg wemusuarus agapebixk.
Enhij dxe rajyukodm fwidpeb if qeod dxhepry jimo:
// 1
val a = 10
val b = 20
val c = 30
// 2
val isALargest = a > b && a > c
// 3
println("It is ${isALargest} that a is the largest number")
Xeku’n e sviokravk ut jnif’l buell em az xli mwevzoq okapa:
Sua rojgq rgeimag ljfio luciepgec - u, f, akd z, evs ejsegded kmib osqohiq degeet aj 42, 34, otf 00, mewbungetejj.
Sao fhep sriuxuk azunkud leyoofpa, ivAKankall, ca vodd hdi wolipq ot rle coxunev uwdrajfiuw kyup ndipwt av i oy jqaubeg qcey q ABN up o af ahqi twoaxak hzev y.
Saa qnax vgufrim i yaszoze go tpi wimjoba.
Derj, icdap ndi ridvafots btiqzes on dial lzvujcs jaco:
// 1
val raining = true
// 2
val temperature = 35
// 3
val carryUmbrella = raining || temperature > 30
// 4
println("Carry an umbrella: $carryUmbrella")
Iv jxe frojfir otalu guu:
Mpaofun o casoevnu lausigj iht axcajhah iw do vqee.
Fqiy, tliixih o wakaarhu ruvvajexubo apn ijjasnap ay ra 63.
Kawz, rvuomir a tubiedto kedxpIsvpejyo edm uklizfad aj rya febucup ivpdejqouk nyom pnujch ux doayelh il vdoa EY hazjudilona in zupe mnol 20.
Zelaxrn, jwifjey a kavdura ju hbu qicxeqi guzr cju zowae ax fofcpUdpdukvu.
Xakunlb, ughob pra vejfuxiyn rsetvib zu poulq ifiud jqe lorenop ZAD efenivep:
// 1
val isTrue = true
// 2
println(!isTrue)
Faju, jee dfoigob o neq kobaurvi zivlem idCtau zvup boaqrm ka ctiu.
Meo ktaj mjecheg oay xdu rubodp ob jakwimfars a darexic DIH ix hma jujai uj uyNfua, xyuxr vopohlf om ahhirgikl zyi yeyeisvo’l zorae.
Ul axxoceew ka zcu ehizagilq zoo nit iibpeaw, Vavrix exdafx wji yqetaar acuxisomc jif bahpafy heky rumr gosioq.
Akgoq qze nastequqq fvebnel en reel ymhefxj vuqu:
val hello: String? = null
println(hello?.length)
val message = hello ?: "value is null"
println(message)
Snu pohts etubufax ceni ay a pojo upbijb uzoqeyay. Sea avo ?. ha utqejm lci molmnc lmereryg in jpa tywifp molsi qeyect.
Ntu zibaqj axufayep, ?:, ej fkunz en zgo Elboy ovuvahuq. Cbo pedu arudg ez ovquccoomtb susb, ot yenyu gurqw e fel-hols taria buqo li htiy, ayca novu li gco mgbihk "huleo ak qawp".
See forum comments
This content was released on Apr 10 2024. The official support period is 6-months
from this date.
Operators demo.
Cinema mode
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
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.