ATAkshay Tekaminakshaytekam.hashnode.dev·Aug 31, 2025 · 3 min readArray in KotlinDefinition Arrays are used to store multiple items of same data-type in a single variable, such as an integer or string under a single variable name. Creating Arrays in Kotlin To create an array in Kotlin, we use the arrayOf() function, and place the...00
ATAkshay Tekaminakshaytekam.hashnode.dev·Aug 30, 2025 · 2 min readKotlin Loops and Control KeywordsLoops in Kotlin for loop: Used to iterate over a range, array, collection or anything that provides an iterator. fun main(){ for(i in 1..5){ println(i) } for(char in "Kotlin"){ println(char) } } fun main(args: Array<...00
ATAkshay Tekaminakshaytekam.hashnode.dev·Aug 29, 2025 · 2 min readKotlin FunctionsDefinition A function is a unit of code that performs a special task. In programing, the function is used to break the code into smaller modules, which makes the program more manageable. fun name(args): Data_Type { body } // fun: Keyword for fun...00
ATAkshay Tekaminakshaytekam.hashnode.dev·Aug 29, 2025 · 1 min readKotlin Null SafetyDefinition Kotlin’s null safety ensures safer code by catching potential null-related issues at compile time rather than runtime. This feature improves code robustness, readability and maintainability by explicitly expressing ‘null’ values, making th...00
ATAkshay Tekaminakshaytekam.hashnode.dev·Aug 15, 2025 · 5 min readKotlin: Control FlowDefinition Kotlin flow control statements determine the next statement to be executed. For example, the statements if-else, if, when, while, for and do are flow control statement. Control Flow Statements If Else When For While Break and Continue...00