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 |
Tags
- git commit 해쉬
- 안드로이드
- error while loading state for instance 0x0 of device 'goldfish_pipe
- 도즈모드
- git 안드로이드 스튜디오 연동
- was server
- nginx 한글 깨짐
- 에뮬레이터 에러
- 안드로이드 스튜디오 에러
- 코틀린 플러그인
- git
- doze mode
- BuildConfig
- E212: Can't open file for writing
- ppk to pem
- aws 느림
- access modifier
- kotlin plugin
- nextInt()
- aws 리전 변경
- toastmessage
- Android
- utf8 인코딩
- git 저장소
- AWS
- 탄력적 ip
- 이클립스 코틀린
- gitemoji
- 자바
- basic toast
Archives
- Today
- Total
목록nextLine() (1)
리얼라이져의 마케팅, 개발, 창업 블로그
자바 nextInt() 다음에 nextLine() 실행 안되는 현상
자바 Scanner 를 이용해서 nextInt() 를 이용해 숫자를 출력하고 nextLine()을 이용해 문장을 출력하려고 하는데, nextLine()이 안되는 현상을 발견했다. 아래 코드를 보자. public class Main{ public static void main(String[] args) { // TODO Auto-generated method stub //이안에서 코드가 작동한다. Scanner sc=new Scanner(System.in); int number=sc.nextInt(); String sentence= sc.nextLine(); System.out.print("숫자-> "); System.out.println(number); System.out.print("문장 입력-> ")..
IT/자바
2020. 2. 2. 23:59