Java getAudioInputStream() Symbol not found
<p>I have created a <code>class</code> to play the sound when I click the buttons.</p>

<p>Here is the code : </p>

<pre><code>public void playSound()
    {
        try 
        {
            AudioInputStream audioInputStream = AudioSystem.getAudioInputStream(new File("beep-1.wav"));
            Clip clip = AudioSystem.getClip( );
            clip.open(audioInputStream);
            clip.start( );
        }
        catch(Exception e)
        {
            System.out.println("Error with playing sound.");
            e.printStackTrace( );
        }
    }
</code></pre>

<p>But when I compile, I get this error : </p>

<pre><code>error: cannot find symbol
            AudioInputStream audioInputStream = AudioSystem.getAudioInputStream(new File("beep-1.wav"));
                                                                    ^
  symbol:   class File
  location: class MemoryGame
1 error

Process completed.
</code></pre>

<p>What is the problem with the <code>getAudioInputStream()</code>? </p>

<p>I had used <code>import javax.sound.sampled.*;</code> in my program.</p>
