Hi, I am getting the following error by eclipse, when I try to call the method "wait" from the class "Action": Cannot make a static reference to the non-static method wait(long) from the type Object (Relevant code attached)
The wait method used to be part of the Main class itself and i'm trying to change that. By creating the Action class, I have different utility functions like this one. To avoid having to call Action.wait() every time, I used a static import.
When I comment out the original wait() from Main, it tells me the above. I am confused, considering, that my wait() method takes an int and not a long. Does somebody know what I might be missing?