?? test.java
字號(hào):
class Foo implements Runnable
{
public synchronized void printM1()
{
while (true)
System.out.println("printM1");
}
public synchronized static void printM2()
{
while (true)
System.out.println("printM2");
}
public void run()
{
printM1();
}
}
class Test
{
public static void main(String args[])
{
Foo f = new Foo();
Thread t = new Thread(f);
t.start();
f.printM2();
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -