public int getNumber()
{
int result = 0;
String tempRoman = roman;
for (int i = 0; i < LETTERS.length; i++)
{
while (tempRoman.startsWith(LETTERS[i]))
{
result += NUMBERS[i];
tempRoman = tempRoman.substring(tempRoman.length() - (tempRoman.length() - 1));
}
}
return result;
}