HexLibraryHexLibrary
</> HexCodeSign inSign up
PythonJavaScriptTypeScriptCC++JavaPHPGoRustRubyBashSQLLuaPerlCOBOLPascalDelphiFortranDartSwiftC#JuliaGroovyRElixirHaskellKotlinScalaClassic ASPClipperMS-DOS
LESSONS
Introduction to KotlinVariables (val / var)Data TypesStringsListsConditions (if / when)Loops (for / while)Functions
REFERENCE
📖 Overview
🖥️ Output
📦 Variables & Types
🔢 Numbers & Math
✍️ String
📚 Collection
🔀 Condition & Loop
🧩 Function
Kotlin›REFERENCE

Kotlin — Command Reference

Kotlin's most used commands — modern, safe, fully compatible with Java. Android's official language. (For reference/educational purposes on this platform; examples must include explanations.)

7 categories · 15 commands

🖥️

Output

println and string templates.

println()String template ( $ )
2 commands →
📦

Variables & Types

val, var, and type conversion.

val / vartoInt() / toString()
2 commands →
🔢

Numbers & Math

Operators and math.

Math operatorsMath.sqrt() / Math.pow()
2 commands →
✍️

String

Length, casing, search, and splitting.

.length / .uppercase().contains() / .replace() / .split()
2 commands →
📚

Collection

List and Map.

listOf / mutableListOfmapOf / mutableMapOf
2 commands →
🔀

Condition & Loop

if/else, for, and while.

if / elsefor (in)while
3 commands →
🧩

Function

fun, single-expression, and lambda.

fun (function)Lambda ( { -> } )
2 commands →
HexLibraryHexLibrary

Learn programming more clearly. Every command is explained line by line with colors, reinforced with runnable exercises, test your code instantly — all in one place, free.

Learn

  • Home
  • Languages & Lessons
  • HexCode

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Use

Other Projects

  • HexToolz
  • Free Service Manuals
© 2026 HexLibrary · The clearest way to learn code