문서의 이전 판입니다!
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); // 결과 At 12:30 PM on Jul 3, 2053, there was a disturbance in the Force on planet 7.