阅读背景:

如何在Java中永远运行程序? System.in.read()是唯一的方法吗?

来源:互联网 

I took this code:

我拿了这段代码:

 28     public static void main(String[] args) throws IOException {
 29         HttpServer httpServer = startServer();
 30         System.out.println(String.format("Jersey app started with WADL available at "
 31                 + "%sapplication.wadl\nTry out %shelloworld\nHit enter to stop it...",
 32                 BASE_URI, BASE_URI));
 33         System.in.read();
 34         httpServer.stop();
 35     } 
 28     public s



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: