Kotlin for Android Developers #3: Variables and Data Types

preview_player
Показать описание


This tutorial introduces how to create and use variables in Kotlin, as well as all available data types.

In Kotlin, everything is an object, meaning there are no primitive types. Also, in contrast to Java, the data type always comes after the identifier.

Комментарии
Автор

Peter, I really like your instruction method. It's very clear, and I think that's really important. Thank you for the time and effort you put into this. Much respect from Vegas.

dabunnisher
Автор

I'm using a Mac but if you wanted to increase/decrease font size. Within Android Studio, I would go to 'Preferences' then in the 'search' type Increase or select 'Keymap'. Then under 'Editor Actions', right click select 'Increase Font Size', and from here 'Add Keyboard Shortcut'. Repeat steps for 'Decrease Font Size'
You would then click the editor window you want to alter font size and use the Keyboard Shortcut you set to either increase or decrease font size.
Cheers :)

space
Автор

is there a way to know the type of a variable: a method/function or something

ramoun
welcome to shbcf.ru