@@ -0,0 +1,899 @@
+/**%0A * Given a roman numeral, convert it to an integer.%0A *%0A *Input is guaranteed to be within the range from 1 to 3999.%0A */%0Aclass Solution %7B%0A    public int romanToInt(String s) %7B%0A        int result = 0;%0A        %0A        if(s.indexOf(%22IV%22)!=-1) result-=2;%0A        if(s.indexOf(%22IX%22)!=-1) result-=2;%0A        if(s.indexOf(%22XL%22)!=-1) result-=20;%0A        if(s.indexOf(%22XC%22)!=-1) result-=20;%0A        if(s.indexOf(%22CD%22)!=-1) result-=200;%0A        if(s.indexOf(%22CM%22)!=-1) result-=200;%0A        %0A        for (char key : s.toCharArray()) %7B%0A            result += map.get(String.valueOf(key));%0A        %7D%0A        return result;%0A    %7D%0A    %0A    private final Map%3CString, Integer%3E map = new HashMap%3CString, Integer%3E() %7B%0A        %7B%0A         put(%22M%22, 1000);%0A         put(%22D%22, 500);%0A         put(%22C%22, 100);%0A         put(%22L%22, 50);%0A         put(%22X%22, 10);%0A         put(%22V%22, 5); %0A         put(%22I%22, 1);    %0A        %7D%0A    %7D;%0A%7D%0A

Create RomanToInteger.java