Here you can find the source of getFiles(List
Parameter | Description |
---|---|
filepaths | a parameter |
public static List<File> getFiles(List<String> filepaths)
//package com.java2s; /******************************************************************************* * Manchester Centre for Integrative Systems Biology * University of Manchester//from w w w . j a v a 2s. c o m * Manchester M1 7ND * United Kingdom * * Copyright (C) 2007 University of Manchester * * This program is released under the Academic Free License ("AFL") v3.0. * (http://www.opensource.org/licenses/academic.php) *******************************************************************************/ import java.io.*; import java.util.*; public class Main { /** * * @param filepaths * @return List */ public static List<File> getFiles(List<String> filepaths) { final List<File> files = new ArrayList<>(); for (Iterator<String> iterator = filepaths.iterator(); iterator.hasNext();) { files.add(new File(iterator.next())); } return files; } }