Skip to content

Coder Articles

A blog for all types of codes, and languages examples and algorithms.

  • Home
  • Jetpack Compose
    • Compose Basics
  • Android
  • Kotlin
  • Interview Questions
  • C/C++/Linux
  • Home
  • Jetpack Compose
    • Compose Basics
  • Android
  • Kotlin
  • Interview Questions
  • C/C++/Linux

Category: Kotlin

Kotlin: Functions
Kotlin

Kotlin: Functions

WebPublisherby WebPublisherApril 19, 2024April 19, 2024

Functions in Kotlin are declared using the fun keyword fun main(args: Array<string>) {   // code here } How to add parameters in function declaration: Function parameters …

Data class in Kotlin
Kotlin

Data class in Kotlin

WebPublisherby WebPublisherApril 19, 2024April 19, 2024

Before jump into Kotlin data class, Lets us see POJO class in Java. If we want to store some data in Java, we would usually …

Kotlin

Kotlin strings

WebPublisherby WebPublisherApril 19, 2024April 19, 2024

The string is an array of characters Strings are represented by the type String Strings are immutable. That means we can not alter a String …

Companion object in Kotlin
Kotlin

Companion object in Kotlin

WebPublisherby WebPublisherApril 10, 2024April 10, 2024

Overview: Unlike Java, Kotlin does not have static members or member functions. If you want to access the members or member functions without instantiating class, use the …

Fizz Buzz Program in Kotlin
Data Structures / Kotlin / Programs

Fizz Buzz Program in Kotlin

WebPublisherby WebPublisherApril 10, 2024April 10, 2024

Introduction: The Fizz Buzz program is a classic coding exercise often used in technical interviews to assess a candidate’s basic programming skills. In Kotlin, mastering …

Anagram Strings Program in Kotlin
Kotlin

Anagram Strings Program in Kotlin

WebPublisherby WebPublisherApril 9, 2024April 9, 2024

Introduction: Anagrams are fascinating linguistic puzzles where two or more words or phrases can be rearranged to form different words or phrases containing the same …

Android Jetpack DataStore: Preferences DataStore
Android / Jetpack / Kotlin

Android Jetpack DataStore: Preferences DataStore

WebPublisherby WebPublisherApril 2, 2024April 2, 2024

Jetpack DataStore is a data storage solution that allows you to store key-value pairs or typed objects with protocol buffers. DataStore uses Kotlin coroutines and Flow …

Android / Kotlin

ListAdapter: Extension to RecyclerView.Adapter

WebPublisherby WebPublisherApril 2, 2024

ListAdapter was added in Recyclerview library version 27.1.0. It is RecyclerView.Adapter base class for presenting List data in a RecyclerView, including computing diffs between Lists on a background thread. Before …

JSON to POJO class creation in Android studio – Kotlin/Java
Android / Kotlin

JSON to POJO class creation in Android studio – Kotlin/Java

WebPublisherby WebPublisherApril 2, 2024April 2, 2024

  Introduction In modern Android app development, handling JSON data is a common task, especially when interacting with web APIs. JSON (JavaScript Object Notation) is …

Copyright © 2025 Coder Articles.