Convert Array[] to ArrayList<> and ArrayList<> to Array[] in java
import java.util.ArrayList;
import java.util.Arrays;
String[]array={"Hello","Dineth"};
ArrayList arrayList=Arr.toList(array);
array=Arrays.toString(Arr.toArray(arrayList))
Convert Array[] to ArrayList<> and ArrayList<> to Array[] in java
import java.util.ArrayList;
import java.util.Arrays;
String[]array={"Hello","Dineth"};
ArrayList arrayList=Arr.toList(array);
array=Arrays.toString(Arr.toArray(arrayList))