A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.

Sprintf in Java

import java.text.MessageFormat;

int a = 3;
String b = "coders";

System.out.println(
    MessageFormat.format("{0} Java {1}.", String.format("%04d", a), b)
);