Copy of kotlin-tutorial
- Kotlin Java
- Kotlin Tutorial
- Setup Kotlin(Java) Project
- Kotlin Example Program
- Convert Java file to Kotlin
- main() function
- Kotlin Loops
- Kotlin Ranges
-
Kotlin Arrays
- Array Basics
- Kotlin – Create Array
- Kotlin – Create Empty Array
- Kotlin – Create Integer Array
- Kotlin – Create String Array
- Kotlin – Create Byte Array
- Kotlin – Array of Arrays
- Kotlin – Get Array Size
- Kotlin – Get Element of Array at Specific Index
- Kotlin – Set Element of Array at Specific Index
- Kotlin – Get First Element of Array
- Kotlin – Get Last Element of Array
- Kotlin – Print Array in Single Line
- Array Checks
- Kotlin – Check if Array is Empty
- Kotlin – Check if Array Contains Specified Element
- Array Loops
- Kotlin – Iterate over Array
- Kotlin – Array For Loop
- Kotlin – Array While Loop
- Array Sorting
- Kotlin – Array Sorting
- Kotlin – Sort Array of Integers
- Kotlin – Sort Array of Strings
- Kotlin – Sort Array of Strings based on Length
- Kotlin – Sort Array in Descending Order
- Kotlin OOP Concetps
- Kotlin Exceptions
-
Kotlin String Operations
- Basics
- Kotlin – Initialize string
- Kotlin – Create empty string
- Kotlin – Define a string constant
- Kotlin – Get string length
- Kotlin – Print a string
- Kotlin – Concatenate strings
- Kotlin – Compare strings
- Kotlin – Multiline strings
- Checks
- Kotlin – Check if strings are equal
- Kotlin – Check if strings are equal ignoring case
- Kotlin – Check if string is empty
- Kotlin – Check if string contains specific substring
- Kotlin – Check if string contains specific character
- Kotlin – Check if string starts with specific prefix
- Kotlin – Check if string starts with specific character
- Kotlin – Check if string ends with specific suffix
- Kotlin – Check if string ends with specific character
- Kotlin – Check is string matches regular expression
- Finds
- Kotlin – Count number of words in string
- Kotlin – Find index of substring
- Kotlin – Get random character from string
- Kotlin – Substring
- Transformations
- Kotlin – Capitalize a string
- Kotlin – Convert string to lowercase
- Kotlin – Convert string to uppercase
- Kotlin – Filter characters of string
- Kotlin – Join strings by a separator
- Kotlin – Remove first N characters from string
- Kotlin – Remove last N haracters from string
- Kotlin – Repeat string N times
- Kotlin – Reverse a string
- Kotlin – Sort characters in string
- Kotlin – String replace
- Kotlin – Trim white spaces around string
- Split Operations
- Kotlin – Split string
- Kotlin – Split string to lines
- Kotlin – Split string by comma
- Kotlin – Split string by single space
- Kotlin – Split string by any whitespace character
- Kotlin – Split string by one or more spaces
- Conversions
- Kotlin – Convert char array to string
- Kotlin – Convert string to char array
- Kotlin – Convert byte array to string
- Kotlin – Convert string to byte array
- Kotlin – Convert string to list of characters
- Kotlin – Convert list of characters to string
- Kotlin – Convert string to set of characters
- Character specific Operations
- Kotlin – Get character at specific index in string
- Kotlin – Get first character in string
- Kotlin – Get last character in string
- Kotlin – Iterate over each character in string
- Kotlin – Insert character at specific index in string
- Kotlin – Get unique characters in string
- Kotlin – Remove character at specific index in string
- Kotlin – Remove first character in string
- Kotlin – Remove last character in string
- Kotlin – Replace specific character with another in a string
- Kotlin – Remove specific character in a string
- String Formatting
- Kotlin – Write variable inside string
- String Collections
- Kotlin – List of strings
- Kotlin String List – Filter based on Length
- Kotlin – Filter only strings in this list
- Kotlin List – Filter non-empty strings
- Kotlin – Create a set of strings
- Kotlin – Create string array
- Kotlin – Sort array of strings
- Kotlin – Sort string array based on string length
-
Kotlin File Operations
- Create Operations
- Kotlin – Create file
- Kotlin – Create a directory
- Kotlin – Create directory recursively
- Get Properties / Meta
- Kotlin – Get file creation timestamp
- Kotlin – Get file extension
- Kotlin – Get file last modified timestamp
- Kotlin – Get file name
- Kotlin – Get file size
- Iterate over files
- Kotlin – Iterate through all files in a directory
- File Checks
- Kotlin – Check if file exists
- Kotlin – Check if file is readable
- Kotlin – Check if file is writable
- Kotlin – Check if directory exists
- Read Operations
- Kotlin – Read file
- Kotlin – Read file as list of lines
- Kotlin – Read file character by character
- Kotlin – Read file line by line
- Kotlin – Read file into a string
- Write / Update Operations
- Kotlin – Append to text file
- Kotlin – Copy content of a file to another file
- Kotlin – Copy directory
- Kotlin – Copy file
- Kotlin – Move file
- Kotlin – Move directory
- Kotlin – Rename file
- Kotlin – Rename directory
- Kotlin – Replace specific string in file
- Kotlin – Write to File
- Delete Operations
- Kotlin – Delete a file
- Kotlin – Delete / remove all content in text file
- Kotlin – Delete a directory
-
Kotlin List
- Kotlin - Convert List to Set
- Kotlin - Create an empty list
- Kotlin - Filter elements of a List based on Condition
- Kotlin - Filter even numbers in a list
- Kotlin - Filter List of strings based on length
- Kotlin - Filter Odd Numbers in a list
- Kotlin - Filter only integers in a list
- Kotlin - Filter only non-empty strings of a list
- Kotlin - Filter only strings from a list
- Kotlin - Iterate over Elements of List using For Loop in Kotlin?
- HKotlin - Iterate over List of Lists
- Kotlin - Remove all occurrences of element in a list
- Kotlin - Remove all Elements from a List
- Kotlin - Remove specific Element in list
- Kotlin - Access index of element in a list while filtering
- Kotlin - Add element to List at specific index
- Kotlin - Add Element to List
- Kotlin - Define a List of Integers
- Kotlin - Define a List of Lists
- Kotlin - Define a List of strings
- Kotlin - Read file content as a list of lines
- Kotlin - Remove element at specific index in list
- Kotlin - replace an Element at specific Index
- Kotlin List forEach – Example
- Kotlin List.all()
- Kotlin List.any()
- Kotlin List.component1()
- Kotlin List.component2()
- Kotlin List.component3()
- Kotlin List.component4()
- Kotlin List.component5()
- Kotlin List.contains()
- Kotlin List.contains()
- Kotlin List.containsAll()
- Kotlin List.count()
- Kotlin List.get()
- Kotlin List.indexOf()
- Kotlin List.indices Property
- Kotlin List.isEmpty()
- Kotlin List.iterator()
- Kotlin List.lastIndex
- Kotlin List.lastIndexOf()
- Kotlin List.size
- Kotlin List.subList()
- Kotlin Mutable List
-
Kotlin Programs
- Kotlin – Add two numbers
- Kotlin – Armstrong number
- Kotlin – Average of two numbers
- Kotlin – Average of numbers given in array
- Kotlin – Check if given number is part of Fibonacci series
- Kotlin – Check prime number
- Kotlin – Even number
- Kotlin – Factorial
- Kotlin – Factors of a number
- Kotlin – Fibonacci series
- Kotlin – Find largest of two numbers
- Kotlin – Find smallest of two numbers
- Kotlin – Find largest of three numbers
- Kotlin – Find smallest of three numbers
- Kotlin – Odd number
- Kotlin – Palindrome
- Kotlin – Print prime numbers
- Kotlin – Product of digits in a number
- Kotlin – Reverse a number
- Kotlin – Sum of first n natural numbers
- Kotlin – Sum of squares of first n natural numbers
- Kotlin – Sum of digits in a number
- Kotlin Interview Questions
- Related Tutorials
- Kotlin Android Tutorial
- How to Learn Programming