package com.csair.test;
public class Test {
public static void main(String[] args) {
Test t1 = new Test();
t1.f1();
}
public int f1() {
for(int i=0; i<20; i++) {
System.out.println("f1线程--" + i);
}
//内部类
class A implements Runnable{
@Override
public void run() {
for(int i=0; i<20; i++) {
System.out.println("内部类---" + i);
}
}
}//内部类
A a = new A();
Thread t = new Thread(a);
t.start();
return 0;
}
}