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
- system
- while
- Pipelining
- DB
- html
- MIPS
- Algorithm
- react
- web
- instruction
- architecture
- Linux
- Java
- control
- php
- function
- python
- mysql
- MacOS
- XML
- DoM
- DATAPATH
- github
- javascript
- data structure
- DS
- computer
- CSS
- for
- Class
Archives
- Today
- Total
목록delimiter (1)
YYYEJI
[JAVA] Delimiter란?
Delimiter은 특정 문자열로 문자를 구분해줍니다. 아래 예제를 통해 public static void main(String[] args) { Scanner s = new Scanner ("2022/10/23"); s.useDelimiter("/"); while(s.hasNext()){ System.out.println(s.next()); } } 코드 한 줄씩 설명해 드리겠습니다. Scanner s = new Scanner ("2022/10/23"); ✓ 현재 s 객체에 "2022/10/23"이 들어가 있습니다. s.useDelimiter("/"); ✓ s 객체를 "/" 기준으로 문자열을 나눕니다. while(s.hasNext()){ System.out.println(s.next()); } ✓ s객체..
Java
2022. 10. 23. 14:48