} 線程
------------------------------------------------------------------------------------------------------------------------------------------------------------------ class
class AA implements Runnable
{
public void run()
{
while(true)
{
System.out.println("AAAA");
}
}
}
class BB
{
public static void main(String[] args)
{
AA aa=new AA();
Thread t=new Thread(aa);
t.start();
while(true)
{
System.out.println("BBBBBBBBBBBBB");
}
}
}
方法