What does this error mean?

Question:
Does anybody know wht this error means:

public static void wait(long x) {
_______________^
overriding method is static

Repl link:

public static void wait(long x) {

      try {
        Thread.sleep(x);
      } catch(Exception e) {}
      // waits for x seconds
    }
1 Like

nvm I forgot I can’t use the name wait for a method

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.