반응형
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 | 29 | 30 |
Tags
- java bigdecimal
- COALESCE
- JavaScript
- codedeploy error
- SQL
- Jenkins
- Kafka
- Spring Error
- aws
- redis
- docker
- AWS CI/CD 구축하기
- Python
- codebuild
- Airflow
- Flux
- bootstrap
- codepipeline
- 도커
- chartjs
- IntelliJ
- node
- or some instances in your deployment group are experiencing problems.
- PostgreSQL
- Spring
- VPN
- aws cicd
- kubeflow
- chart.js
- codedeploy
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 |