일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 다운캐스팅
- 전자정부
- 25가지 효율적인 sql작성법
- IBatis procedure
- 형변환
- while
- 가변인자
- 다형성
- 자바 야구게임
- 상속
- 이클립스
- 추상클래스
- angular2
- 야구게임
- 전체
- Login with OAuth Authentication
- Random
- 로또
- 자바
- Full text
- 상속예제
- 단축키
- 업캐스팅
- 페이징
- Validations
- 스프링
- jquery
- 전체텍스트
- full text indexing
Archives
- Today
- Total
nalaolla
Method 예제 1 (예외처리) 본문
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
반응형
'JAVA > 8. Method1' 카테고리의 다른 글
Method 예제 5 (0) | 2016.06.22 |
---|---|
Method 예제 4 (0) | 2016.06.22 |
Method 예제 3 (활용예제) (0) | 2016.06.22 |
Method 예제 2 (Method 정리) (0) | 2016.06.22 |