sleep()方法是將當(dāng)前線程掛起指定的時(shí)間。 wait()釋放對(duì)象上的鎖并阻塞當(dāng)前線程,直到它重新獲取該鎖。
數(shù)組和string都沒(méi)有Length()方法,只有Length屬性。