How to add File [] Array content into ArrayList?
use following
List<File>tempList = Arrays.asList(temp);
Try this
tempList.addAll(Arrays.asList(temp));
If you are not going to update the content of the array (add/removing element), it can be as simple as
List<File> tempList = Arrays.asList(temp);
Of course, if you want a list that you can further manipulate, you can still do something like
List<File> tempList = new ArrayList<File>(Arrays.asList(temp));