I create Thread in java, I want to kill or destroy or exit it and restart the same thread again. There are properties to kill or destroy thread but are deprecated now. Here is may same thread code
`Thread ball6Animation;
public void ball6Animation()
{
ball6Animation=new Thread(){
public void run()
{
while(true){
try{
sleep(1000);
// Some Logic
}catch(Exception e){e.printStackTrace();}
}}};
ball6Animation.start();
}
` Any help will be appreciated