Java File Name Get getFilenames(File[] files)

Here you can find the source of getFilenames(File[] files)

Description

get Filenames

License

Open Source License

Declaration

public static String[] getFilenames(File[] files) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.io.File;

import java.util.ArrayList;

public class Main {
    public static String[] getFilenames(File[] files) {
        ArrayList<String> result = new ArrayList<String>();
        for (File afile : files) {
            result.add(afile.getAbsolutePath());
        }// w  ww  . j  a v a2s  .  c  om
        return result.toArray(new String[0]);
    }
}

Related

  1. getFilenameParts(File file)
  2. getFileNames(byte[] zipFile)
  3. getFileNames(File path, Vector result)
  4. getFileNames(File zipFile, Pattern pattern)
  5. getFileNames(File[] files)
  6. getFileNames(final String path, final String regex)
  7. getFileNames(final String pDataDir, final String pFilter)
  8. getFilenames(String dir, FilenameFilter filter)
  9. getFilenames(String dirctory)