Java tutorial
import java.util.Calendar; public class Main { public static void main(String args[]) { Object a[] = { "String 1", "String 2", Calendar.getInstance() }; System.out.println(String.format("Hi %1$s at %2$s ( %3$tY %3$tm %3$te )", a)); } } //Hi String 1 at String 2 ( 2009 03 2 )