본문 바로가기

무마니

검색하기
무마니
프로필사진 vndn629

  • 분류 전체보기 (49) N
    • 백엔드 개발자 (49) N
      • Java[Spring] (14) N
      • 데이터분석 (2)
      • Python[파이썬] (1)
      • JavaScript (5)
      • Unity C# (0)
      • Linux (3)
      • React (0)
      • Jstl (0)
      • DB (7)
      • XML (3)
      • 로그 & 콘솔에러 (1)
      • 에디터 (6)
      • 2022년 국비 학원 프로젝트 (7)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
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
  • linux db설치
  • fullcalenda 일정수정
  • 패킷
  • NULL
  • 정규표현식
  • restapi란?
  • linux dump
  • fullcalenda 일정추가
  • fullcalenda 추가
  • fullcalenda
  • linux dump하는법
  • linux 데이터베이스
  • IP
  • fullcalenda 일정
  • Java
  • red hat db
  • Java정규표현식
  • red hat linux mysql
  • fullcalenda 수정
  • restapi ajax
  • fullcalenda 등록
  • select
  • linux mysql설치
  • fullcalenda 캘린더
  • red hat mysql
  • fullcalenda 사용법
  • 비밀번호변경로직
  • java비밀번호
  • Linux
  • TCP
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록특정자리수만큼0으로공백채우기 (1)

무마니

특정 자리수 만큼 0으로 공백 채우기(String.format())

예 ) 현재 시간 구하기 LocalDateTime now = LocalDateTime.now(); int hour = now.getHour() // 시간 String.format("%02d", hour) %02d -> 2글자까지 0으로 채운다. ​ ​ hour -> 1시면 (01시)로 표시 hour -> 7시면 (07시)로 표시 hour -> 10시면 (10시)로 표시 ​

백엔드 개발자/Java[Spring] 2023. 4. 10. 08:00
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바