main方法从命令行获取参数的简单形式

代码以下: public static void main(String[] args) { String hostName = null; String hostPort = "80"; String protocol = "http"; if (args != null && args.length > 0) { for (int i = 0; i < args.length; i
相关文章
相关标签/搜索