http://www.javakc.com
2023-03-06 09:18:44 查看(65) 回复(0)
public class HelloSogou{ public static synchronized void main(String[] a){ Thread t=new Thread(){ public void run(){Sogou();} }; t.start(); System.out.print("Hello"); } static synchronized void Sogou(){ System.out.print("Sogou"); } }
评论
站点统计|举报|Archiver|手机版|小黑屋|Comsenz Inc.
GMT+8, , Processed in 0.195171 second(s), 9 queries .
Powered by javakc! X1.0
© 2004-2014 javakc
f1208.com 备案号:京ICP备14030918号-1