Tuesday, April 10, 2012

AJP-2marks






Answer for 8th question:
import java.applet.*;
AudioClip ac = getAudioClip(getCodeBase(), soundFile);
ac.play(); //play once
ac.stop(); //stop playing
ac.loop(); //play continuously

No comments:

Post a Comment