title: In J2ME After creating a player with one audio file, is that possible to pass an another audio file to same instance of player to play
body: <p>After creating a player by using method this code:</p>
  
  <pre><code>player = Manager.createPlayer(getClass().getInputStream("/sound.wav"), "audio/x-wav")
  </code></pre>
  
  <p>Is it possible to pass an audio file to same instance of player?</p>
  
  <p>I tried by doing this:</p>
  
  <pre><code>player = (Player) player.getClass().getInputStream("/sound.wav");
  </code></pre>
  
  <p>but this one give me an exception which is <code>java.lang.ClassCastException</code></p>
  
  <p>If its is possible then how it should be done?</p>