Java File Name Get getFileNameWithPath(String path, String fileNameWithoutFullPath)

Here you can find the source of getFileNameWithPath(String path, String fileNameWithoutFullPath)

Description

get File Name With Path

License

Open Source License

Declaration

public static String getFileNameWithPath(String path, String fileNameWithoutFullPath) 

Method Source Code

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

import java.io.File;

public class Main {
    public static String getFileNameWithPath(String path, String fileNameWithoutFullPath) {
        return path + File.separator + fileNameWithoutFullPath;
    }//from  w ww. j av  a  2  s.com
}

Related

  1. getFileNameWithoutExtension(String fullFilename)
  2. getFileNameWithoutExtensionFromPath(String s)
  3. getFilenameWithoutExtention(File file)
  4. getFileNameWithoutFilePath(File f)
  5. getFilenameWithoutPath(String path)