Post Series:
Part 1: Hello world and Basic Data Types
Part 2: Array, Collection and Range
Part 3: Control Flow
Part 4: Function
Part 5: Class
Although Kotlin is statically typed language, it supports object-oriented programming like Java. Before explaining further let us dive into the basic syntax of the Kotlin class.
class Vehicle { // class definition // class body } So, defining a basic class is as simple as this and similar to Java.
Post Series: Part 1: Hello world and Basic Data Types
Part 2: Array, Collection and Range
Part 3: Control Flow
Part 4: Function
Part 5: Class
Merry Christmas Guys! The year 2018 is about to end. This have been a great year. Happy New Year 2019, May your new year be filled with Joy and Happiness. This will probably be the last post for this year 2018. Hope to see you all in the next year!
Post Series:
Part 1: Hello world and Basic Data Types
Part 2: Array, Collection and Range
Part 3: Control Flow
Part 4: Function
Part 5: Class
In this post we are going to learn about the control flow in Kotlin. Let us learn about how to make a decision, how to perform a task multiple times by iterating and how to get out of the loop, how to continue to next iteration.
Post Series:
Part 1: Hello world and Basic Data Types
Part 2: Array, Collection and Range
Part 3: Control Flow
Part 4: Function
Part 5: Class
In this post we will discuss about the Array, Collection and Range in Kotlin.
Array In Kotlin, we can create array using two different ways. First one is by using arrayOf() function and next one is by using Array() constructor.
Using arrayOf() function val accountInfo = arrayOf("Sudeep", 34000) The accountInfo array is of type Array<Any>.
Post Series:
Part 1: Hello world and Basic Data Types
Part 2: Array, Collection and Range
Part 3: Control Flow
Part 4: Function
Part 5: Class
Since Kotlin is already a official programming language for Android Apps development, I have been learning Kotlin lately. In this post, i will take you through basic hello world skeleton program to data types, variables in Kotlin.
Hello World Program for Kotlin fun main(args: Array) { println("Hello World!