Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Nwangang kafeh
Added: Jan 31, 2021 6:33 AM
Views: 6
Tags: no tags
  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 homelab.ocp809.chp01;
  7.  
  8. /**
  9.  *
  10.  * @author mckafeh
  11.  */
  12. public class SimpleThread extends Thread {
  13.     public void run(){
  14.         for(int i =0; i < 4; i++){
  15.             System.out.println("in MYThread: "+i);
  16.         }
  17.     }
  18.    
  19.     public static void main(String[] arg){
  20.        
  21.     }
  22.    
  23. }
  24.