public class RomanNumeralUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RomanNumeralUtils.RomanNumeral |
| Modifier and Type | Method and Description |
|---|---|
static String |
arabicToRoman(int number)
Converts an Arabic number to a Roman number.
|
static int |
romanToArabic(String input)
Converts a Roman number to an Arabic number.
|
public static int romanToArabic(String input)
input - the Roman number to be convertedpublic static String arabicToRoman(int number)
number - the Arabic number to be converted (a value from 1 to 3999)IllegalArgumentException - if the given input is not in range (0,3999)Copyright © 2020. All rights reserved.