티스토리 뷰
728x90
The following example creates a MessageFormat instance that can be used repeatedly:
int fileCount = 1273; String diskName = "MyDisk"; Object[] testArgs = {new Long(fileCount), diskName}; MessageFormat form = new MessageFormat( "The disk \"{1}\" contains {0} file(s)."); System.out.println(form.format(testArgs));
The output with different values for fileCount:
The disk "MyDisk" contains 0 file(s). The disk "MyDisk" contains 1 file(s). The disk "MyDisk" contains 1,273 file(s).
https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/text/MessageFormat.html
MessageFormat (Java SE 17 & JDK 17)
All Implemented Interfaces: Serializable, Cloneable public class MessageFormat extends Format MessageFormat provides a means to produce concatenated messages in a language-neutral way. Use this to construct messages displayed for end users. MessageFormat t
docs.oracle.com
728x90
'공부' 카테고리의 다른 글
DR(Disaster Recovery) System (0) | 2023.12.10 |
---|---|
[thymeleaf] <td th:text="|${price} 원|">{price} 원</td> (0) | 2023.12.09 |
[Spring] ControllerAdvice & RestControllerAdvice (0) | 2023.12.09 |
[JPA] @GeneratedValue(strategy = GenerationType.AUTO) (0) | 2023.12.09 |
[linux] swapoff -a && swapon -a (메모리 초기화) (0) | 2023.12.09 |
댓글
250x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 테슬라 레퍼럴
- 클루지
- 김달
- Bot
- 개리마커스
- 테슬라 리퍼럴 코드 생성
- 인스타그램
- 연애학개론
- 책그림
- 메디파크 내과 전문의 의학박사 김영수
- 할인
- 모델 Y 레퍼럴
- 유투브
- 레퍼럴
- 모델y
- follower
- wlw
- 테슬라 크레딧 사용
- 팔로워 수 세기
- 테슬라 리퍼럴 코드
- 테슬라 레퍼럴 적용 확인
- 어떻게 능력을 보여줄 것인가?
- 테슬라 추천
- COUNT
- Kluge
- 테슬라
- 테슬라 레퍼럴 코드 확인
- 테슬라 리퍼럴 코드 혜택
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함