// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import java.text.*;

public class Format {
   private static final NumberFormat f1 = new DecimalFormat("00");
   private static final NumberFormat f2 = new DecimalFormat("000");
   public static String format(int y, int n) {
      return f1.format(y) + f2.format(n);
   }
   public static void main(String[] args) {
      System.out.println(format(4,13));
   }
}
