Learn Python practically
and Get Certified.
Reference Materials
Created with over a decade of experience.
Certification Courses
Created with over a decade of experience and thousands of feedback.
Learn Python practically
and Get Certified.
Try Programiz PRO!
Learn Python practically
and Get Certified.
The best way to learn Kotlin is by practicing examples. The page contains examples on basic concepts of Kotlin. You are advised to take the references from these examples and try them on your own.
All the programs on this page are tested and should work on all platforms.
Popular Examples
- Kotlin Program to Convert String to Date
- Kotlin Program to Get Current Date/TIme
- Kotlin Program to Convert Milliseconds to Minutes and Seconds
- Kotlin Program to Add Two Dates
- Kotlin Program to Get Current Working Directory
- Kotlin Program to Convert Byte Array to Hexadecimal
- Kotlin Program to Create String from Contents of a File
- Kotlin Program to Append Text to an Existing File
- Kotlin Program to Convert a Stack Trace to a String
- Kotlin Program to Convert File to byte array and Vice-Versa
- Kotlin Program to Convert InputStream to String
- Kotlin Program to Convert OutputStream to String
- Kotlin Program to Lookup enum by String value
- Kotlin Program to Compare Strings
- Kotlin Program to Sort ArrayList of Custom Objects By Property
- Kotlin Program to Check if a String is Numeric