Please help me figure out what when wrong in this coding.
import java.lang.Thread;
class MyThread1 extends Thread
{ public void run()
{ for(int x=1;x<=15;x++)
{ if(x==10)
{ stop();
}
System.out.println(x);
}
}
}
class MyMain
{ public static void main(String args[])
{ MyThread1 first_thread=new MyThread1();
first_thread.start();
}
}
the error is Note: MyClass.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.