Java Run Static Method in New Thread

java, methods, multithreading, static

Solution

Have a `Thread`'s `run` method call the `static` method:

new Thread(Call::yourStaticMethod).start();

Problem

I just started learning java and I ran into a slight road block involving threads. I have a static method that I would like to run in its own thread, is this possible? In python I know it would look something like this: `import thread;thread.start_new_thread( my_function, () );` And I know how to use threading with non-static methods by implementing Runnable or extending thread, but this is not what I am trying to do.

Original source