@@ -0,0 +1,1098 @@
+import java.util.HashMap;%0Aimport java.util.Map;%0A%0A/**%0A * Created by drfish on 25/06/2017.%0A */%0Apublic class _013RomanToInteger %7B%0A    public int romanToInt(String s) %7B%0A        Map%3CCharacter, Integer%3E map = new HashMap%3CCharacter, Integer%3E() %7B%7B%0A            put('M', 1000);%0A            put('D', 500);%0A            put('C', 100);%0A            put('L', 50);%0A            put('X', 10);%0A            put('V', 5);%0A            put('I', 1);%0A        %7D%7D;%0A        int result = 0;%0A        for (int i = 0; i %3C s.length(); i++) %7B%0A            if (i %3E 0 && map.get(s.charAt(i)) %3E map.get(s.charAt(i - 1))) %7B%0A                result -= map.get(s.charAt(i - 1));%0A                result += map.get(s.charAt(i)) - map.get(s.charAt(i - 1));%0A            %7D else %7B%0A                result += map.get(s.charAt(i));%0A            %7D%0A        %7D%0A        return result;%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        _013RomanToInteger solution = new _013RomanToInteger();%0A        assert 12 == solution.romanToInt(%22XII%22);%0A        assert 21 == solution.romanToInt(%22XXI%22);%0A        assert 99 == solution.romanToInt(%22XCIX%22);%0A    %7D%0A%7D%0A

Add java solution for 13