package thread;

public class ThreadTest1 implements Runnable {
    
    public static void main(String[] args) {
        new Thread(new ThreadTest1()).start();
        for (int i = 0; i < 10; i++) {
            System.out.println("main");
        }
    }

    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            System.out.println("run!");
        }
    }
    
}

@@ -114,16 +114,27 @@
 %0A       
+ Thread t =
  new Thr
@@ -155,16 +155,27 @@
 Test1())
+;%0A        t
 .start()
@@ -176,16 +176,25 @@
 tart();%0A
+        %0A
         
@@ -207,32 +207,33 @@
 nt i = 0; i %3C 10
+0
 ; i++) %7B%0A       
@@ -261,17 +261,22 @@
 ln(%22main
-%22
+:%22 + i
 );%0A     
@@ -355,16 +355,17 @@
 ; i %3C 10
+0
 ; i++) %7B
@@ -404,10 +404,14 @@
 %22run
-!%22
+:%22 + i
 );%0A 

refactor test