Saturday, August 19, 2017

Kotlin Series

August 19, 2017
kotlin
welcome to kotlin series. Kotlin Series In this series, we are basically going through some basic and advanced tutorial about kotlin language. we try to serve you best practices on those tutorials. Here is the collection of all post 1. String -  kotlin string tutorial 2. Array and loop - array and loop tutorial 3. File reader and write - kotlin...
Read More

Friday, August 18, 2017

Kotlin Collection Example

August 18, 2017
Welcome to kotlin Series In the tutorial, we are going to discuss Kotlin collection. we touch on below topics 1. Hashmap 2. Array 3. List        3.a. mutable list        3.b. immutable list 4. Set        4.a. mutable set        4.b. immutable set Let's start- Hashmap: In kotlin, we can use java hashmap easily. But kotlin has an own hashmap. First, we go through Java hashmap create an instance of Hashmap class...
Read More

How to control loop in Kotlin

August 18, 2017
Welcome to kotlin Series In this small post, we are going to discuss how to control loop in Kotlin. Basically, we use 2 keywords for the control loop. 1. continue 2. break if we want to skip one process, then we use to continue the keyword for (a in 1..5){ if (a==4){ continue } println("A: $a") } Output: A: 1 A: 2 A: 3 A: 5 or if we stop the loop then we use break keyword for (a in 1..5){ if (a==4){ break } println("A: $a") } Output: A:...
Read More

Wednesday, August 16, 2017

Kotlin ArrayList

August 16, 2017
kotlin
Welcome to kotlin Series In this post, we are going to learn about ArrayList. In android the use of ArrayList is huge. So let's move on today task list. 1. we create an ArrayList 2. insert some value 3. update some value 4. search in ArrayList 5. delete some value Let's start: Note: we discuss array and loop in this post Kotlin: Array and Loop. you can take a look at this post of...
Read More

Tuesday, August 15, 2017

Kotlin: File reader and writer

August 15, 2017
kotlin
Welcome to kotlin Series In this post, we are going to learn about kotlin IO (input or output) we basically learn about file reader and writer. In this post, we are going to write a program that takes text from the console and save it on computer hard disk as a text file. Let start- First, we are going to create a method for saving file, method name writeToFile Follow those step: 1....
Read More

Saturday, August 12, 2017

Android studio: share code on Github and add SSH key to you Git

August 12, 2017
share+git+android+studio
Welcome to this post. In this post, we are going to discuss how to share code on Git from Android Studio. (I don't want to describe what is GitHub or why you need to use git. I just want to show you the process only) Let's jump in. Before share, you need to create a GitHub account click here for GitHub account. After creating a GitHub account, you can now share your code into GitHub. Open android...
Read More

Saturday, July 15, 2017

Kotlin OOP: method overriding

July 15, 2017
kotlin
Welcome to kotlin Series Kotlin OOP series: OOP Basic Constructor Inheritance Method Overriding This is the fourth post in this Kotlin OOP series. In this series, we are going to cover a very important topic that is method overriding. This uses in the android app development is huge. First, we create two classes and we use one class method for other class. But we already know it how...
Read More