반응형
Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 31 |
Tags
- 백준
- Java
- 모바일
- 재귀함수
- backjoon
- CKLU
- 안드로이드
- 데이터베이스
- dfs
- 다이나믹 프로그래밍
- BFS
- 자바
- 삼성SW테스트
- 삼성sw문제
- Android
- 언더라이터
- 알고리즘
- 멀티스레드
- 개발
- 조합
- 네트워크
- 현대오토에버 코딩테스트
- 프로그래머스
- 익명클래스
- IT
- 너비탐색
- 백준 알고리즘
- 익명객체
- dp
- 금융IT
Archives
- Today
- Total
목록nextLine (1)
Limky 삽질블로그
1. 입출력 함수 사용시 주의사항 1 - 타입 별로 입력을 받는 방법 1) int를 입력 받을 때는 nextInt 메서드를 이용한다. public class StandardIO { public static void main(String[] args) throws IOException { //int를 입력 받을 때는 nextInt 메서드를 이용한다. Scanner sc = new Scanner(System.in); int a,b; a = sc.nextInt(); b = sc.nextInt(); System.out.println(a+" "+b); } } 입력 : 10 20 결과 : 10 20 2) char를 입력 받을 때는 (char)System.in.read 메서드를 이용한다. public class St..
프로그래밍/Java
2018. 12. 5. 22:31