1 Answer
New Answer1) You need to create a class for your thread (extends Thread or implements Runnable. Or you can use something like this: new Thread(){ @Override public void run(){} };). 2) Add the 'run' void method. There your thread will do everything you need. 3) Create a thread object and call the 'run' method.
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message