i have this list if an arrayList:
[a b c d,e f g h, i j k l]
and i want to separate them to an array become:
temp_array[0]=a
temp_array[1]=b
temp_array[2]=c
temp_array[3]=d
i have done by using multidimensional array(2d array) and using split() method like this:
static ArrayList<String> letter = new ArrayList<String>();
temp_array = new String[letter.size()][];
for(int i=0; i<letter.size();i++)
{
String temp = output_list.get(i);
temp_array[i] = temp.split(" ");
}
but, i have the problem using double array and i want to use just an array like temp_array[].anyone can help me?