How to Save And Retrieve Class Object From Shared Preferences Using Gson Library in Kotlin

In this article, we will learn how to Save And Retrieve Class Object From Shared Preferences Using Gson Library in Kotlin. Many times, we need to save an instance of a class that has only fields like Int, Long, Float, Double, String, Boolean and objects of different classes. We use the GSON library that helps us to convert the model class to […]

Regex in Kotlin Android Studio

In this article, we will learn about Regex in Kotlin. Regex is used to refer to a regular expression that is used to search a string or replace a pattern in a String. To use it, we need Regex(pattern: String) class and  Kotlin.regex.text package. Constructor Regex(pattern: String) It will give string pattern. Regex(pattern: String, option: […]

Begin typing your search term above and press enter to search. Press ESC to cancel.