I am getting a list of data in a loop. For example :
List<String> and the values is :
abc{+6636593}
jkihe{qwsd223awq}
......
......etc
I need to have:
abc
jkihe
I write this code :
ArrayList<String> values = new ArrayList<String>();
for(String valueone : valuetwo){
values.add(valueone);
}
Above code work good but below code get me crash :
for (int i = 0; i < values.size(); i++) {
Log.i("test" , values.get(i).split("{")[0]); <==== HERE GET ME CRASH
}