Answer the question
In order to leave comments, you need to log in
How to split delimited text in android?
Good afternoon.
There is a line. the enumeration is separated by spaces or a semicolon.
How to convert to a list?
Answer the question
In order to leave comments, you need to log in
String string = ".45.79..5...78.";
String[] split = string.split("\\.");
System.out.println("g21g string [" + string+"]");
for (int i = 0; i < split.length; i++) {
System.out.println("g21g split[i] [" + split[i]+"]");
}
где "\\." - это разделитель, регулярное выражение
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question