62,614
社区成员
发帖
与我相关
我的任务
分享
public class Test {
public static void main(String[] args) throws InterruptedException {
Test t = new Test();
//注意这里
Thread th = new Thread(t.new RunnableTest());
th.start();
th.join();
System.out.println("aaa");
}
public class RunnableTest implements Runnable{
public void run() {
this.getClass();
System.out.println("bbb");
}
}
}
OnClickListener AAListener = new OnClickListener() {
public void onClick(View v) {
Intent intent = new Intent();
intent.setClass(MainMenuActivity.this,
BBActivity.class);
startActivity(intent);
}
};