I've a string with complete language name and I wanted to set first two characters of that language name to my text view. Like I've a language name AFRIKAANS and I only wanted to set AF on my text view. How can I do this
Asked
Active
Viewed 161 times
-1
-
1This is clearly answered here: https://stackoverflow.com/questions/26010602/android-how-to-get-first-character-of-string/26010631 – Rajasekhar Feb 23 '21 at 07:12
-
1@Rajasekhar or even better, https://stackoverflow.com/questions/42217815/extract-first-two-characters-of-a-string-in-java – a_local_nobody Feb 23 '21 at 07:15
-
@a_local_nobody Yes it does. – Rajasekhar Feb 23 '21 at 07:16