SyntaxFix
Write A Post
Hire A Developer
Questions
Stopping (Killing) a thread mid-way is not recommended. The API is actually deprecated.
However,you can get more details including workarounds here: How do you kill a thread in Java?