//package com.nowjava;
import java.net.InetSocketAddress;
/*
n o w j a v a . c o m 提 供
*/
public class Main {
public static void main(String[] argv) throws Exception {
String address = "nowjava.com";
Integer port = 2;
System.out.println(getSingle(address, port));
}
private static final int DEFAULT_PORT = 80;
public static InetSocketAddress getSingle(String address, Integer port) {
if (port == null) {
port = DEFAULT_PORT;
}
/**代码未完, 请加载全部代码(NowJava.com).**/
本文系作者在时代Java发表,未经许可,不得转载。如有侵权,请联系nowjava@qq.com删除。