public class Converter extends Object
Constructor and Description |
---|
Converter() |
Converter(boolean bStrictMode)
Strict mode forces rejection of illegal Roman numeral sequences.
|
Modifier and Type | Method and Description |
---|---|
int |
toNumber(String strRomanNumerals)
Convert Roman numerals to an integer.
|
String |
toRomanNumerals(int number)
Convert into Roman numerals.
|
public Converter()
public Converter(boolean bStrictMode)
public String toRomanNumerals(int number)
number
- the integer to convert to Roman numeralspublic int toNumber(String strRomanNumerals) throws ParseException
strRomanNumerals
- The Roman numerals in string format.ParseException
- If the Roman numerals are in illegal form according to the mode.Copyright © 2013. All Rights Reserved.