Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Multithreading implements Runnable{
- public void run(){
- runMethod();
- }
- public static void main(String args[]){
- Multithreading multiThread=new Multithreading();
- Thread thread =new Thread(multiThread);
- thread.start();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement