I got an ArrayList "ArrayList1" with content like
0090113itemone ,
1000120itemtwo ,
0090113itemthree
There are always 7 numbers in front of an item .
Now I want to remove the numbers to assign only the items to a ListView.
I tried to convert the Array to String with
String[] arr = ArrayList1.toArray(new String[ArrayList1.size()]);
and then use substring to cut the first 7 positions from the string
result.append(arr.substring(0,7));
But this will get me an error Cannot invoke substring(int, int) on the array type String[]
So I would need a way to get rid of these numbers. Either how to solve this error or, if you got a better idea, I'm also open to that.
result.append(arr.substring(0,7));substring(int,int) over an array? Didn't it through any compilation error? You should iterate through the string array and do a substring.