I have read a number of questions and answers about how to close a currently running thread, but many use the method "desroy()", which is deprecated.
I am working in Java and have written code that uses multithreading to simultaneously open the Notepad executable multiple times. I now want to close these executable files. Is there a way to close these files by closing/ending the currently running threads without invoking a deprecated method?
Please feel free to let me know if I need to elaborate upon, or clarify, any points. I really appreciate any help you can provide!