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";
        }
        
    }

}

package com.github.scturkey;

public class RomanKataConverter {

    public String convert(int decimal) {
    	if (decimal<4){
    		StringBuilder sb = new StringBuilder();
    		for (int i=0;i<decimal;++i){
    			sb.append("I");
    		}
    		return sb.toString();
    	} else if (decimal == 4){
        	return "IV";
        }else if (decimal == 5){
        	return "V";
        }else if (decimal == 6){
        	return "VI";
        }else {
        	return "X";
        }
        
    }

}

refactor repetative ones