RomanNumberFormat nf = new RomanNumberFormat(); int year = Calendar.getInstance().get(Calendar.YEAR); System.out.println(year + " -> " + nf.format(year));