Kotlin Tutorial will cover many aspects of programming using Kotlin Language.
About Kotlin:
– Kotlin is the programming language that targets the Java platform.
– Kotlin is concise, safe, pragmatic, and focused on interoperability with Java code. It can be used almost everywhere Java is used today: from server-side development to Android applications, and much more.
– Kotlin works great with all existing Java libraries/frameworks and runs with the same level of performance as Java.
I. Basic Practice
Property & Method
- Kotlin mutable & immutable variable – val vs var
- Java Static Method equivalent in Kotlin
- Lazy Initialization Example
- Delegated Property – Observable Property
Operator
Function
String
- Split String example
- Convert comma-separated String into List & List into one String
- Convert String to Int
- Convert String to Long
Comparation
JSON
Collections
List
- Kotlin Distinct() methods of List collection
- Kotlin List methods – max() maxBy() maxWith()
- Kotlin List methods – min() minBy() minWith()
- Kotlin List reduce(), reduceIndexed(), reduceRight(), reduceRightIndexed() methods example
- Kotlin filter List example
- Kotlin transform List with map() methods example
- Kotlin Flatten List – Problem & Solution
Map
- Kotlin Map methods – maxBy() maxWith()
- Kotlin Map methods – minBy() minWith()
- Kotlin convert Map to SortedMap
- Kotlin Map collection with flatMap(), flatMapTo() methods
- Kotlin – filter() map examples
- Kotlin Map collection – map() methods
Array
- Kotlin Flatten Array
- Kotlin Array find the Largest Element – max() maxBy() maxWith() methods
- Kotlin Array find the Smallest Element – min() minBy() minWith() methods
- Kotlin – average() function with Kotlin Array – List examples
- Kotlin Array sort(), sortBy(), sortWith()
Others
- Sort List of Objects with Comparator Example
- Sort List of Objects with Comparable Example
- Convert comma-separated String into List & List into one String
- Kotlin sum() and sumBy() method for List, Map of Objects example
- Kotlin Partition method – split List, Map of Objects example
- Kotlin Fold Example
- Convert Kotlin Map to List
- Convert Kotlin List to Map
- Kotlin forEach & forEachIndexed method on Array, List, Map collection
- Kotlin Loop: for loop + while loop + break & continue example
- Kotlin methods – any(), none(), all(), contains()
- Kotlin collection methods – groupBy(), sumByDouble(), mapValues(), toSortedMap() example
- Kotlin onEach() vs forEach() example
Files – I/O
- How to read File in Kotlin
- How to write to file in Kotlin
- Kotlin get File Name example
- How to read/write CSV file in Kotlin
- How to read/write CSV file with Apache Commons CSV
- How to read/write CSV file with OpenCSV
- How to read/write Excel file with Apache POI
- How to read/write QR Code with ZXing
Kotlin DateTime
- Kotlin – Get Current Date/Time
- Kotlin Convert String to DateTime
- Kotlin DateTime – get Today, Tomorrow, Yesterday with LocalDate, ZonedDateTime
- Kotlin DateTime API examples
Sample for Practice
- Sort List of Objects with Comparator Example
- Sort List of Objects with Comparable Example
- Kotlin Comparable Binary Search for Object List
- Kotlin Comparator Binary Search for Object List
- Sort Object List with Kotlin Selector function – crossinline selector: (T) -> R?
- Binary Search for Object List with Comparison function – comparison: (T) -> Int
- Binary Search for Object List with Selector function – crossinline selector: (T) -> K?
- Kotin – toString() – convert Kotlin Data Class Object to String
- Kotlin – Encode (Decode) File/Image to Base64
II. Design Pattern
Creational Patterns
III. Kotlin Spring
Starter -> Kotlin HelloWorld with SpringBoot + Maven + SpringToolSuite
Kotlin Spring RestAPI + Front End
- @RestController – How to build a SpringBoot Kotlin RESTful Web Service
- Kotlin Spring MVC RequestMapping RESTful APIs with @GetMapping, @PostMapping, @PutMapping, @DeleteMapping | SpringBoot Example
- Kotlin SpringBoot JQuery Ajax POST/GET requests
- Kotlin SpringBoot RestAPI – AngularJs Ajax POST/GET messages – style with Bootstrap 4
- Bootstrap 4 Table + AngularJs + Kotlin SpringBoot RestAPI
- Kotlin – SpringBoot Kotlin RestAPI + Bootstrap 4 Table + JQuery example
- Kotlin SpringBoot + Ajax Jquery Http Delete + Bootstrap example
- Kotlin SpringBoot + Ajax JQuery PUT nested objects + Bootstrap example
- Kotlin – SpringBoot + Jquery JsonP for requests to cross domain
- Kotlin SpringBoot RestAPI – Bootstrap 4 Image – Jquery
- Kotlin SpringMVC Form Submmission – with Thymeleaf + SpringBoot + Boostrap 4 Form
Kotlin Spring WebFlux
Kotlin Spring JPA
- Spring JPA + Postgresql | Spring Boot Example
- Kotlin – Integrate H2 database with Spring JPA( by Spring Boot) in Embedded mode
- Kotlin SpringJPA One-to-One relationship
- Kotlin SpringJPA Hibernate One-To-Many relationship
- Kotlin SpringJPA Many-To-Many relationship
- Kotlin – SpringData MongoRepository to interact with MongoDB
- Kotlin – SpringBoot MongoDB – Model One-to-One, One-to-Many Relationships Embedded Documents
- Kotlin + SpringBoot JPA + MySQL- Save/retrieve Files/Images with @Lob annotation
Kotlin Spring Security
- Kotlin SpringBoot – Configure Spring Security
- Kotlin – Spring Security JDBC Authentication – SpringBoot + MySQL + Bootstrap
- Kotlin – Spring Security Customize Logout Success Handler
- Kotlin – Spring Security – Customize Authentication Success Handler
Others
PDF, CSV, Excel Files
- iText PDF + Kotlin SpringBoot RestAPI + MySQL
- Kotlin Spring Boot RestAPIs – Download Excel File – Apache POI + MySQL
- Kotlin Spring Boot RestAPIs – Download CSV File example – Apache Commons CSV + MySQL
IV. Kotlin Android
General Practice
- GridView example: Show List of Items on Grid
- GridView example: Show Item Details
- HTTP Call with AsyncTask example
- ListView example
- SQLite example – CRUD operations with ListView
- SQLite example – Search with Listview
Firebase
Cloud Messaging
Authentication
- How to Sign Up, Sign In, Sign Out, Verify Email
- Send Reset Password Email / Forgot Password
- Google Sign In
Realtime Database
Cloud Storage
- Upload Data from Memory, Local File, Stream
- Download Files to Memory, Local File
- Get List of Files example – Image List with FirebaseRecyclerAdapter
Cloud Firestore
AWS
Amazon S3 – upload/download files (images)