Advertisement
sergAccount

Untitled

Feb 13th, 2021
838
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.50 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package com.mycompany.app12;
  7.  
  8. /**
  9.  *
  10.  * @author Admin
  11.  */
  12. public class Task implements Runnable{
  13.    
  14.     public Task(){
  15.         System.out.println("Task created");
  16.     }
  17.     @Override
  18.     public void run() {
  19.         System.out.println("Task.run>>");
  20.        
  21.         System.out.println("<<");
  22.     }  
  23. }
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement