dongguangming
V2EX  ›  问与答

Java 线程真难,还要继续吗

  •  
  •   dongguangming · Apr 12, 2020 · 1392 views
    This topic created in 2250 days ago, the information mentioned may be changed or developed.

    public class PrintThread extends Thread { private String message;

    public PrintThread(String message) { super(); this.message = message; }

    public void run() { for(int i=0;i<10;i++) { System.out.print(message); } }

    public static void main(String[] args) throws IOException { new PrintThread("good").start(); } } ,一个 start()都很深奥! https://www.cnblogs.com/dongguangming/p/12683579.html

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1103 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 18:14 · PVG 02:14 · LAX 11:14 · JFK 14:14
    ♥ Do have faith in what you're doing.