Formatting Strings In Kotlin

1 min read

String Formatting in Kotlin and ( Java)
In Java and Kotlin, String.format() allows you to format strings using format specifiers. These are also called format placeholders or conversion specifiers.
Here’s a table of common format specifiers :
Each Place Holder starts with “%” symbol not be confused with mod as it followed by an Alphabet which specifies the type of data to be form
0
Subscribe to my newsletter
Read articles from devhead_Sicario directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

devhead_Sicario
devhead_Sicario
I am a Android Native Developer using JetpackCompose , Kotlin to the moon and just a brown dude who gets a high Creating Fast and Beautiful Apps , just like my cars (someday hopefully) for both the Apps and the Cars , self aware , humble and definitely not self obsessed just obsessed with iterating and improving myself and my skills , "You can always be Better , Do Better "