반응형
250x250
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
- docker
- AWS CI/CD 구축하기
- kubeflow
- Kafka
- COALESCE
- aws cicd
- chart.js
- PostgreSQL
- Airflow
- Flux
- openlens
- Jenkins
- 도커
- codedeploy
- chartjs
- codepipeline
- Spring Error
- codebuild
- aws
- codedeploy error
- java bigdecimal
- SQL
- bootstrap
- VPN
- node
- Spring
- JavaScript
- Python
- IntelliJ
- redis
Archives
- Today
- Total
Small Asteroid Blog
StringBuilder & System.out.println() 본문
728x90
StringBuilder
출력할 데이터를 모아서 한번에 출력
String 보다 쉽게 문자열 처리 가능
StringBuilder output = new StringBuilder();
BufferedReader reader = new BufferedReader(
new InputStreamReader(process.getInputStream()));
String line;
while ((line = reader.readLine()) != null) {
output.append(line);
System.out.println(">>> " + line);
}
System.out.println("output >> " + output.toString());
728x90
반응형
'백엔드 > Spring' 카테고리의 다른 글
| [spring] Json 데이터 Object, Array 값 key, value 가져오기 (0) | 2021.12.14 |
|---|---|
| [spring] Jsoup HTTP error fetching URL. Status=405 (0) | 2021.12.10 |
| 자바에서 파이썬 파일 실행하기 - processbuilder (0) | 2021.11.10 |
| [Java] 구글 뉴스 날짜별로 크롤링하기 (0) | 2021.11.08 |
| element is not attached to the page document (0) | 2021.11.04 |