D
dragonsfall21
hello fellow java programmers. I was wondering if anybody could help
think of a good way to convert roman number in to a base 10 number.
My first thought was to create parallel arrays for numerals and
letters, and the use a for loop, combined with if statements: if
substring of starting letter sequence equals anything from the array,
take that off and add the coresponding numeral to the final result.
But this got really bulky and overbearing. was looking for a better
way.
Thanks.
think of a good way to convert roman number in to a base 10 number.
My first thought was to create parallel arrays for numerals and
letters, and the use a for loop, combined with if statements: if
substring of starting letter sequence equals anything from the array,
take that off and add the coresponding numeral to the final result.
But this got really bulky and overbearing. was looking for a better
way.
Thanks.