Variable not found. Referencing objects from another class
<p>Background:</p>

<p>I'm creating a basic download centre on a concurrent server.</p>

<p>I create file objects in the <code>Server class</code> under a main method</p>

<pre><code>File[] files = {
    new File("1. Program", "myProgram.jar"),
    new File("2. Image", "myPicture.jpg"),
    new File("3. Book", "myBook.txt")};
</code></pre>

<p>This references to the <code>File class</code> where I create constructors and getters.</p>

<pre><code>class File {

    private String option;
    private String fileName;


    public File(String option, String fileName) {
        this.option = option;
        this.fileName= fileName;
    }

    public String getOption() {
        return option;
    }


    public String getFileName() {
        return fileName;
    }

    public void getFileOptions(File[] files) {
        for (File f : files) {
            System.out.printf("The option is %s\n", f.getOption());
        }
    } 
}
</code></pre>

<p>I am attempting to call the <code>getFileOptions</code> method from my <code>ServerState class</code>. </p>

<pre><code>theOutput= File.getFileOptions(files);
</code></pre>

<p>The output is a string that is returned to a client.</p>

<p>My IDE says that <code>(files)</code> cannot be found. Any ideas where I'm going wrong? Cam I not return results to a class where the object wasn't initially created?   </p>
