package com.github.scturkey;

public class RomanKataConverter {

    public String convert(int decimal) {
        if (decimal == 1) {
            return "I";
        }else if (decimal == 2) {
            return "II";
        }else if (decimal == 3){
        	return "III";
        }else if (decimal == 4){
        	return "IV";
        }else if (decimal == 5){
        	return "V";
        }else if (decimal == 6){
        	return "VI";
        }else {
        	return "X";
        }
        
    }

}

@@ -108,20 +108,17 @@
  %7B%0D%0A    
-    
+%09
 if (deci
@@ -124,154 +124,143 @@
 imal
- == 1) %7B%0D%0A            return %22I%22;%0D%0A        %7Delse if (decimal == 2) %7B%0D%0A            return %22II%22;%0D%0A        %7Delse if (decimal == 3)%7B
+%3C4)%7B%0D%0A    %09%09StringBuilder sb = new StringBuilder();%0D%0A    %09%09for (int i=0;i%3Cdecimal;++i)%7B%0D%0A    %09%09%09sb.append(%22I%22);%0D%0A    %09%09%7D
 %0D%0A    
-    
+%09
 %09return 
 %22III
@@ -259,25 +259,31 @@
 urn 
-%22III%22
+sb.toString()
 ;%0D%0A    
-    %7D
+%09%7D 
 else

refactor repetative ones