[JAVA] 프린트 포맷팅

왕감자·2024년 7월 19일

KB IT's Your Life

목록 보기
93/177

TodoApp 할 때~

//출력
prinft(" ")
//문자열 리턴
String line = "%2d] %s".formatted(todo.getId), todo.getTItle());

SimpleDateFormat
특정 문자열 포맷으로 얻기 (java.text.SimpleDateFormat 클래스)
ex) 2024-06-27 15:27:41

0개의 댓글