How to remove first char in kotlin string
Solution 1:
You can use drop() of String class to remove first char of string.
firstName = firstName.drop(1);
Solution 2:
You could use substring
:
firstNumber = firstNumber.substring(1);
You can use drop() of String class to remove first char of string.
firstName = firstName.drop(1);
You could use substring
:
firstNumber = firstNumber.substring(1);