Discuss / Java / 这样执行怎么只显示Server is running...。不显示客户端那里的东西

这样执行怎么只显示Server is running...。不显示客户端那里的东西

Topic source
	public static void main(String[] args) throws Exception{
		// TODO Auto-generated method stub
		server1.main(null);
		Thread.sleep(500);
		new Thread(()->{
			try {
				client1.main(null);
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}).start();	
	}

原来评论中能插入代码,点那个</>,我说怎么有的发的评论很整齐呢。

这样执行怎么只显示Server is running...。不显示客户端那里的东西


  • 1

Reply