DZone

Introduction

In the previous article, I introduced how to install and create a simple Android application using Kotlin in Android Studio 3.0. In this article, I will continue to introduce the basic syntax of Kotlin and write some Kotlin code in Android Studio 3.0.

The Basics in Kotlin

Basic Types

In Kotlin, everything is an object. Basic types, such as integers, floats, and characters act as an object. The name of the basic types and the way they work are very similar to Java but there are some differences you might take into account:

Source: DZone