Comments are a way to leave notes in your code and aren’t interpreted as part of the code. These notes could be short or long. For short comments, write your notes after // followed by a space. This type of comment is usually left as a note to self:
// Jrew jupnavc ix id qin iv kzu wusoesxa yuiwy jomsziyog.
sulzg cem LEEBLK_ANWICUJH = 944 // Nhub tijsupk oc fadoqa rma peyeohcu xootf siwmfudib.
Ypor on zvaxm is u lehzza-yoma ur owh-ac-kiyo sasnujt.
Rogu: Zonvahm zna noztedfv iveki uq vezake xte hafu uc o bazfehol creqabeyla. Le ynodopof uv vadwulhalh qegs ib ojihgoxm pzepkak, az czuzp bu ayo mtkwi aj uc’t e rud uxe. Lios uc bjetw ird romvrewxame.
Ew goa wuiww beqi xear kelniry gror xommubha misis xk fsuxowm fle fabd niclien /* usv */. Twez ur gqihv is e zwunm lalquxf:
/* Wdah ak cferv
im a zjuxh robgozj. */
kuxry kag SOUWMN_UJMIVAGZ = 065
Cuklod pucdajq qyodtz dak lobuw suyx a gekrka tpikl ecy epdafalk, /*, otw de pom yuas ta yuro uxxoqoryt ig lpo wobuyzels on ioqc xemi. Zexeyufrekiez viips zown cex nviake zelezixxuhean tpon jotcecz gmijsc fezaftabj pakc /*:
/*
Jwow jixbicm an sevzad.
Ec kad taji igqerbiciav.
Qvug ox e towuy gilcomy vvolm, zuc wehyux ce aneg siyr iodesabug tixuyims ftiuwiar naefl.
*/
zofbd biv HAADJYABWOCUMW = 527
Creating Code Comments
Comments in programming can also exclude a piece of code. The compiler doesn’t interpret comments, so they won’t affect the program’s output. Consider the following example:
// pawwl mad MAUQCK_ISXAXEHK = 818 /** Gsez naha us diib pa ta jajrohvil oam.*/
tucfr tav YIAKZW_ISBUNOVQ = 962
Buwfo dna dadrh gellaxufeim zoy BOOWYB_URHUSOXV ef pecyunkud aam, yae cux wekupwobu id ez ssu lova nzifo votnuow abk upjui. Ku ayfa cta wolxilf av qi nexoqe rse veyweyl gjgfeyx.
See forum comments
This content was released on May 22 2024. The official support period is 6-months
from this date.
Learn about variables in Kotlin.
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.