在java.net包描述中, 简要说明了一些关键的接口. 其中负责networking identifiers的是Addresses. 这个类的具体实现类是InetAddress, 底层封装了Inet4Address与Inet6Address的异同, 可以看成一个Facade工具类. A Low Level API, which deals with the following abstractions: Addresses, which are networking identifiers,
String fdbs = "WXB,WXA,FDA,WXB"; String[] str = fdbs.split(","); Set set = new HashSet(); for (int i = 0; i < str.length; i++) { set.add(str[i]); } str = (String[]) set.toArray(new String[0]); for (int i = 0; i < str.length; i++)