Well here is my prob

Java Code:
class A
{
Player11 pp;
A()
{       
       pp=new Player11();
       pp.play("song name");
}
public static void main(String args[])
{
new A();
}

Java Code:
class Player11 //extends JPlayer api calsses
{
       void play()
       {
            Thread t= new Thread(this);

             t.start();
        }
        public void run()
       {
                  Player p=new Player("song's name");  //JPlayer api class
                 p.play();   // JPlayer api method
        }
}
now i want to pause the song in between like normal media players do and JPlayer api has p.wait() method but how to do it i am not able to use p.wait() properly help me please

thank you :)