Programming in Kotlin: Fundamentals

Aug 9 2022 · Kotlin 1.6, Android 12, IntelliJ IDEA CE 2022.1.3

Part 1: Use Data Types & Operations

03. Explore Kotlin Language Basics

Episode complete

Play next episode

Next
About this episode

Leave a rating/review

See forum comments
Cinema mode Mark complete Download course materials
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.

Learn more Already a subscriber? Sign in.

Heads up... You've reached locked video content where the transcript will be shown as obfuscated text.

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.

var age: Int = 32
val name: String = "Ayo"
println(name)
val lastName = "Balogun"
val weight = 80.1
println("$name is a musician")
age += 1
println(age)
age += 1
println(age)
println("$name $lastName is $age years old, and weighs $weight kg")
val fullName = "$lastName, $name"

println(fullName)
val ageAsString = age.toString()
println(ageAsString)

val ageFromString = "35".toInt()
println(ageFromString)

val nameLength = fullName.length
println(nameLength)
// This is a line comment
/* This is a multiline comment.
   You don't have to add // before
   each line.
*/
/***/
/**
* 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].
* */
fun main(arguments: Array<String>) ...