JAVA/8. Method1
Method 예제 1 (예외처리)
날아올라↗↗
2016. 6. 22. 17:22
728x90
반응형
- package test.com;
- import java.net.InetAddress;
- import java.net.UnknownHostException;
- public class GetIP {
- public static void main(String[] args) throws UnknownHostException {
- // TODO Auto-generated method stub
- InetAddress ip = InetAddress.getByName(null);
- System.out.println(ip);
- }
- }
728x90
반응형