Notice
Recent Posts
Tags
- LED
- structural modeling
- Set
- Method
- MUX
- atmega 128a
- normal mode
- Recursion
- sequential logic circuit
- structure
- half adder
- dataflow modeling
- ATMEGA128A
- ctc mode
- gpio
- verilog
- java
- Comparator
- timer / counter
- interface
- Linked List
- 8bit timer/counter
- 4bit parallel adder
- behavioral modeling
- interrupt
- atmega 128
- full adder
- fast pwm mode
- behavior modeling
- Algorithm
목록next와 nextLine 차이 (1)
거북이처럼 천천히
Java - next(), nextLine() 차이
next(), nextLine() 이때까지 nextLine() 메소드는 한 줄단위로 입력받기 때문에 Enter 치기 전까지 쓴 모든 문자열을 반환하고, next() 메소드는 공백(space) 전까지 입력받은 문자열을 반환하다고 대략적으로만 알고 있었다. 하지만, next()와 nextLine()의 구체적인 차이점에 대해서 궁금증을 갖게 되었고, next()와 nextLine()의 정확한 차이점에 대해서 알아둘 필요가 있다고 생각하였다. next() 메소드 next() 메소드는 공백(space) 전까지 입력받은 문자 or 문자열을 읽는다. import java.util.Scanner; public class test { public static void main(String[] args) { Scanner..
Back-end/Java 개념
2022. 6. 14. 15:49