Advertisement
Guest User

main2

a guest
Nov 18th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1.  
  2. public class Main2 {
  3.  
  4. public static void main(String[] args) {
  5. Fib f=new Fib();
  6. Thread fib=new Thread(f,"fibonacci");
  7. fib.start();
  8. System.out.println("Thread "+ fib.getName() + " started.");
  9.  
  10. }
  11.  
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement