Display the Name Of The Selected Files For GreyScale --Java Programming: Solving Problems with Software


/**
 * Write a description of greyscale here.
 *
 * @author (your name)
 * @version (a version number or a date)
 */
import edu.duke.*;

import java.io.*;

public class greyscale {

    public void checkdir(){
   
        DirectoryResource dr = new DirectoryResource();
       
        for (File f : dr.selectedFiles())
        {
       
            System.out.println(f);
        }
    }        
}

Comments

Popular posts from this blog

The function swapRedGreen has one parameter, a pixel. This function swaps the red and green values and returns the resulting red, green and blue values somehow. Which one of the following is the correct code for this function?