This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by thiago on 12/04/15. | |
*/ | |
public class Ruler { | |
String[] indexRomans = {"M", "D", "C", "L", "X", "V", "I"}; | |
int[] indexArabic = {1000, 500, 100, 50, 10, 5, 1}; | |
public String convertToRoman(int number){ | |
String result = ""; | |
int index = 0; |