When I open a Java Program, I want a method which returns true if the program is already running, and false otherwise. Is there a way to check for this?
For example, say we open our web browser, the first time we open it, i want the method to return false (there are no other instances of this program running). Now if I were to open a new copy of the program it would return true since there is already one copy of it open.