Java-Get File Names

Get File Names The list( ) method is used to get the file names. This method returns an array of strings naming the files and directories in the directory denoted by this abstract pathname. Program Program Source import java.io.File; public class Javaapp { public static void main(String[] args) { File f1 = new File(“F:\\java8″); System.out.println(“Folder Name … Read more…