@@ -0,0 +1,610 @@
+public String intToRoman(int num) %7B%0A%09Map%3CInteger, String%3E map = new HashMap();%0A%09map.put(1, %22I%22); map.put(5, %22V%22); map.put(10, %22X%22);%0A%09map.put(50, %22L%22); map.put(100, %22C%22); map.put(500, %22D%22); map.put(1000, %22M%22);%0A%09map.put(4, %22IV%22); map.put(9, %22IX%22); map.put(40, %22XL%22); map.put(90, %22XC%22);%0A%09map.put(400, %22CD%22); map.put(900, %22CM%22);%0A%0A%09int%5B%5D sequence = %7B1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1%7D;%0A%0A%09StringBuffer sb = new StringBuffer();%0A%09for (int i=0; i%3Csequence.length; i++) %7B%0A%09%09int base = sequence%5Bi%5D;%0A%0A%09%09while (num %3E= base) %7B%0A%09%09%09sb.append(map.get(base));%0A%09%09%09num -= base;%0A%09%09%7D%0A%09%7D%0A%0A%09return sb.toString();%0A%7D%0A

Create 012_integertoroman.java (#12)