Answers for "kotlin split string"

C
0

kotlin split string

var colors = "red-blue-green";
val colorsArray = str.split("-"); //split colors by -
print(colorsArray); [red, blue green]
Posted by: Guest on July-13-2021
0

kotlin split by uppercase

String s = "thisIsMyString";
String[] r = s.split("(?=\\p{Upper})");
Posted by: Guest on June-03-2020

Code answers related to "C"

Browse Popular Code Answers by Language