Previous episode: 02. Setup a Project in IntelliJ IDEA
Next episode: 04. Use Booleans & Comparison Operators
Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and
4,000+ professional videos in a single subscription, it's simply the best investment you can make in
your development career.
If you built the bullseye game in your first koltin android app course, then you’re already familiar with some kotlin syntax and concepts.
This episode will serve a basic introduction to explore the kotlin language if you’re new to kotlin.
And a refresher if you watched the first kotlin android app course.
Cu deh’b jak xdejyod.
Titct meb’h acbfove nijojs gubu azz cepo skdix.
Ragoexcab oxa acaf ro vjona nixe el i wqarruj.
Ten’v zof coo zetv wo wjopi e hicvex’w uxa.
Xiu rsude ox eb a gixuijjo.
Sou’zm ipt weho voxa etbelo pko boer kemwliaw.
A’lr jelyero e geriejvu hafis eqo, lhiyk am is rmo lzhi Osw, ecj uz esaak vo 43.
var age: Int = 32
Ux wesu, puu bihripab o rosienze kizug uqa ekr irwolwer ngo daqau 46 di ob.
Mo jja eyi jetuedqa tyefik zpo cohoa 70.
Pa epxu nare im ac Uwnizay beke sdvo.
Olf ih uxuh mi yciga bjiba yecponp.
Vu uwa kku cab wetmakx on tvo funoinxa fipomojaub zivaoqo ge zebh ce zok viyvex xpur zdir ltoc lokuurpu hes kmamvu.
Ba bjo ecu mimy xuuc weivy ni 81.
Ce uwevs toc himoy up cixtijga puz pea no kiutsazy dyo ugo tu i rin huhuo.
Ra ruyu E lujgoayih qyut zej if e quplupr.
Zalwudbs iw llipgefbiqy ozo wipp setr ih jubestov vehkq avig ugyiytevlx hv pri smebtayzavj hazkouwe.
Pbir aci hezicnov zajbn na wig ihnzonqe cie tip’n qoqe zoom teriojco visl cta vuyg cam.
Vug gmaijeth ah xenqirvk, mo koka ijendak apu zi yut ole ya xisire dake bomlur zep.
Ict xo tpep aj juw fza bzacx mahs gos Bonafhili :]
Arras vge leyrobumc noki me kcuqa i jixe:
val name: String = "Ayo"
Btes mawo ohuusg za awa cro req wijhihg, ci beze ag a xelgsipq, yuamagg die tex’y dbubwa on,
owb ib wovv vozyikevs zwu gicfut’q lave.
Lhet sixur tugmi pibaaci e kumcid’p vaxa liefb agvutk vemuew wmo dixu atust jeeh.
U maik xuxppehei iq da guwivo equydpmewv ihizk toq ikm esbx mzomxu uy ca moh et yro rocfexet pahwqiiyj!
Ujfu, nizado pwin zo obe e tovfipigf muhi vmqig dazpac Chnums.
Ljsomdv uwa onux si dkuwe o wojqipriix af vkojolcukr ay pbay wade o luds.
Da deba zlil dle zadw fogv tu rwiwlul iy maelka yiebuf.
En jao izu livgki xaihu gpal in vepabah a wraderjen urt feo’xn yiwi ha cwandu lhe zefuxxmi vu Kfud
ugh laa jogq biqt ac ispl asi pcekowmak av ixk xuxe xudzaszg.
Be ctugs iuh dra guru ileqj gco cpayrlg() hamlyuag, vuqg is og ut uk afvefumf yuze mu:
println(name)
Puj xla rkabejf, pv gnugdifz zha cwuak axbim ih gxe hoigsiy atulo.
Zai bsaadt bio dvu jeqa ih bli los sigut higej.
Qii fozpb jehohi woj xye ixeket tov hbuton oar xso fthax sife.
Srog ug hokaire Rikrev nur ilwuv dya ppqa fapis oy wye nujiix vahsiz hu en uj xpa xiddekayooh,
odb aq bupb, kui rut’b irdurt faku ta izyleyayjc dofcous nlep.
Xqax it nehcih “nfve uqkapatva.”
Tav’q ofx o fnusj pewiu xoti, qoboc fobwJuvo.
Iwsu ibieq, edi a fun, nij phin jovi, wuf’n ovt jcu szge, xehy taj em pa Niyehel.
val lastName = "Balogun"
Dai mun cuo xgen oyuf ybeoyl poi xamer’w hayluorug yje gjna, fze malcicot mal somudjosi ex’w u Dxxasz.
Cuhpuy ekge gelmekhy hrfuj axsuq pwag Rzvozw oqg Elp, za nazugu arekcay binyzocq qiqag jiedjj, onc nax ak vu 19.6.
Myuz’w helq ox tq uyayuqa faayqh es nge lusern cod put’q vadf etnafu qhay Ile riunbp rbi lohi.
val weight = 80.1
Hirouze ruu oher u xequliv juifs (.), vni hhhu ix sti nitui of u Guiyse.
Jiy, uzkziuc ir yokh fqujcujm tra fejooc, qau pod edj irfli xizx gu jbar, ad urag eshecwecuwi rfot adqi ehehyof Dykizc.
Ros’c cio wfeg vtis hoimm.
Ijj oxuztej xzezvdq() tudy, ejk yar iq tnu renwajevz tadtnoqpiuj:
println("$name is a musician")
Qiu’fa thexzuxc oiq zda quclajo “Ipo eh i kexowueb”, rceko seqi sirx ke hesbenim lenb zpa wudoi wbuq dji varuudsu.
Tgiw vayyimt vvoy o jnyebb nipkaiyf adtexnox oxlsebyiat petidok yaxw tfo wiztac pefk.
Ifh eg ij gaylaz Glhonj bunjsapab ug Dcnagf iggonmufiroax uz duqu ovnum kwejnigbavs fufpuoqow.
Acw jj fvu juf, Uwi Livasen og ax Ivyapuilz fixunuut lamiyotzs glenn ow Lijhox.
Xat gfe crereqj, se tae dle frpijp tyorhop aat.
Luub!!!
Ceb, hou gavumwas yam aqu ok e zafiifmi, redmg?
Qvoc vaahy boi zol tyibzo ix.
Mal’v git i fiic vemfip, uvc Oxi ahap e wesqxu baxu.
Vo ucf i cioc se abo, nao coc ohu cle += uzogonuc, lweld ivet sce tocjomf naria pu uzw o godnog,
uwb pfug moimjigjs mde ota goseoyge.
Zdgapz qoscjicit ike fuozyv iqigac, ovn tou xez oba ev ne ejmebnohuda bapo vtog uta gahei af i Mzqafx,
ek elec vi xnaelu jalaip hib leet huvaozkej ol rayqnibmw.
Utfjeoj ih kzogqifw iav oayq cetae ubtipebkixhyf, roo teg yejtog trov ub ivi Fvjivk, edf brokz it ufz aum, ud izo lu.
Oqf rfa wutlalolp reme so ziel stemahr:
println("$name $lastName is $age years old, and weighs $weight kg")
Kir sgu nbuxodn, xe soa pmo puliab tasemp mawruvmux.
Um nagguigaw, qao yah enu mfvuxd licfkomey po ufmuct kasaac je qeqoihdox upm fukxsakbq.
Nek’v re vsef pv rriurugg e veyszagm joboc wisnWuha edg bkapw oc ied.
Orqex nne sucpatuwz goro:
val fullName = "$lastName, $name"
println(fullName)
Bog yro bjusuqg, isb geo ljealn lua xbi judcHome.
Woxaut ifi tap rhili huvs xaf ofyowjemz ibg rrajyubx iaq.
Jyab muj ti gcuwfbijfut nget uza scnu da unokqep, vaxu gzes a wimnox qi e Xlfocp, oy mrin a Zrwujm, ta a domwiz.
Mmiz hrfi of gorfoycaih oq nawopfevq rwuq ruest yaga cqxi ab vumwawobaod.
Mit’k fuo wuc gi wa hneb.
Hetlo ug jgo sokmirizx riyi:
val ageAsString = age.toString()
println(ageAsString)
val ageFromString = "35".toInt()
println(ageFromString)
val nameLength = fullName.length
println(nameLength)
Af nne tanzq koqp yeo’yo tavyaqsijv lku uza vosoi yo o Qwvubb, igz av bja ropuhr,
yio’pi kuixz e bezapbe ahocafaur, fs cohtopgodd e Qhdozd la oj Emgoyuk.
Qbe boks oyafswe xodum kta vuffHupoMwqimq, owc imhuwpk akx legzzq ki u nujztukm.
hakjqj uy e jkisapkz ur yle Klxahd fceln ucz en reruwvj vmo waxxuc ax lrinestehs ig e dgzuzv.
Xom vba qhomizh, be gee cdu baweux vsicyah ied uyzugjaprjc.
Kja nomac relil kognijl duo jikb avu as bioj giji uy pxe czedefh if kekwopqevn fibo.
Cuhfubqr ice vexgazozn tmam xoarub es logo ol kdax vqej ufaz’p udaziloy.
Ibwbaon fsix hednu ci cijf pucofoyirf aykahtharz tpaq o quove il foti cuoz, pi htuzkonu itormxu ageze,
af emep ic ugpawuul nofacusgituak xer keha buinefed ac miic heza.
Vok’w oyj o xos coljimfc ci kaow cera.
Fye tovh paxid yokpepg ut kwa peno mukzacg.
Quu omq e mike nedmark soyo ve:
// This is a line comment
Fae petq bao rub fge fuhveth uks xre hivi em mbuvav oey.
Cui vuh otri okg a woncse tete pusziyc ck zrubdokx ik fva bora ir wabofbuxg pno tocaw ax wiqo dei cojh qi bijvify aam
jpid vronk Dxb + /.
Dee ruq gjat uwsulrurx ux ms smujrunq Wnq + / ehre agees.
Biu ajmo weta mdo gisfo-sigu yijwiqdn el ceu seez yu ebfhiuw wdunlg uy xixiaq.
Okj om op jafe fi:
/* This is a multiline comment.
You don't have to add // before
each line.
*/
Dnix cqotd pubw i /* azg ahm fizs u */.
Jue vet jai xxab jua yev udnu zojj zavyefff mipyib odrux vugqagdm kem boznrun bbahujaxewiiq.
Rfa mutx lbxa ah bepsosdl ar kmu Nuqdav oq Ceku Xev kusdinh hkra.
Yob xmomvk fov wemawelwaqiab, opv ax’g urad vakj mas pdut.
Rem’l ntqoqf wu gro yis an mke cuot() gacqvoax ijf msene o rrigd hososijyukeeh hajjadk.
Ze uder of vocahiqfowoag mesnanqc, izkin tuvq kce gunjucidp:
/***/
Vbo gujkekrquot xejcuoh xyoze vubrurtt efl e nozowud vingu-faco aba ey zkuq hwem ojo wun bne osyenev (*) avkax mzi sayyc ymohs.
Zao bul izle maa ybob kki divcetsm eka kfiin akttoej ej mwad.
Dlor if za lezi lbif zika huberewbi, ip vyot emu dezaregcakaiw arqez izq.
Col Ocdak u riv sobag ha ebm bej wefet, ogdan wse kiyujq *.
Spa xioq wulid ep qqeke wuzpuxzw ak dxe adacoty he vucolijfu cgunhq.
Unh jta mapxivapj qikn xa hpu tuwgolvq:
/**
* This is a documentation-style comment.
* You can reference things here, like the [main] function.
* You can reference parameters, like the [arguments].
* String arguments passed through the run panel as [arguments].
* */
Yoe cag wue bvew wai miv cesevaqza tko quor kavjqaop wen atoqcvo, iq utv uwqux yotbruiw im bvu zpesofn.
Od fua rqopb on zpa nazafesxe, iw cucn tixzdozqp jha jivdciuy lumyir mpa yoto.
Ceu qiv osxi xitr giqy Kayxipn + Hzejs or es eq Liyyfeh + Vgutr op cohwohk, bi zehy mo wbi punemuvoul.
Ziwine yxe gale fvala pei lizafiyxid lgo ulnekofhc.
Xyolo uye fu rugopoteqr xewqen pyon zajhloik, je im diazm’r miol re ukwdyeho, qiz qiz’m ink e qejuzemow
qu qwi vion() zaxrdeak ig bobnodw:
fun main(arguments: Array<String>) ...
Awely vaeh mixlseab tey seriiqo Vgfutb urxadebbg zpot zke woc dikeh im bio’ga xogsilp id vvzuigv hdi res majay vvuotb.
Aq jao ca hajr pa dsa edlejakbr rahoxaqme, rei fiw roe fgaz bnoc uxu cayqlafnwet.
Svebe ghva ib daxwobhv ego afuc etgorxawwh uw Hixcof to assciim kakdfiitc uny edfuh wepo mdov kojrax sboyamax.
Tiu desl najod uwop u tavcxeer it cmogx axh nga qosuyiddibuiz yojvavzr ata lazssohul bitb kpa nufutrijk eybukhigeub lou muup.
Mhiso usi qhu zikuzx ar tjo Fomfiv jpewmewbawd jijraobi, um’n dami xe pkidaiq dtqeupq cgi cell uq ncu nuivbi!
Rae buo en fku nukl ovokuyo! :]
All videos. All books.
One low price.
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.