Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main2 {
- public static void main(String[] args) {
- Fib f=new Fib();
- Thread fib=new Thread(f,"fibonacci");
- fib.start();
- System.out.println("Thread "+ fib.getName() + " started.");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement