사용자 도구

사이트 도구


java:string_format

문서의 이전 판입니다!


Java String Format

MessageFormat

 int planet = 7;
 String event = "a disturbance in the Force";
 
 String result = MessageFormat.format(
     "At {1,time} on {1,date}, there was {2} on planet {0,number,integer}.",
     planet, new Date(), event);
java/string_format.1481760876.txt.gz · 마지막으로 수정됨: 2016/12/15 08:44 저자 kwon37xi