Skip to content

Instantly share code, notes, and snippets.

View thiagovars's full-sized avatar

Thiago Vargas thiagovars

  • TSDeveloper
  • Montevideo
View GitHub Profile
@thiagovars
thiagovars / src_Ruler.java
Created April 20, 2015 00:54
Arabic to Roman
/**
* 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;