Hello every one,

is it possible to get files from a file list display with System.out.println.
I mean for example if you code something like:

System.out.println("file.getName");
Then you get a file list.

After how could we use this file list to for example copy or move or anything else with these files?

Thank you

for (File file : fileList){
    System.out.println(file.getName());
}

As for your second question, you can do anything you want with the list of files. It's just a collection of file references.

ok thank you Ezz

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.