Question: written in java /** Replace the individual digits in the current string, between startPosition and endPosition (included), with the corresponding Roman numeral symbol (s). The
written in java
/** Replace the individual digits in the current string, between startPosition and endPosition (included), with the corresponding Roman numeral symbol (s). The first character in the string is * considered to be in Position 1. Digits are converted individually, * even if contiguous, and digit "O" is not converted (e.g., 460 is converted to IVVIO). In case you are not familiar with Roman * numerals, see https://en.wikipedia.org/wiki/Roman_numerals @param startPosition Position of the first character to consider @param endPosition Position of the last character to consider @throws MyIndexOutOfBoundsException If either "startPosition" or "endPosition" are out of bounds (i.e., either less than 1 or greater then the length of the string) @throws IllegalArgumentException If "startPosition" > "endPosition" (but both are within bounds) void convertDigitsToRomanNumeralsInSubstring (int startPosition, int endPosition) throws MyIndexOutofBoundsException, IllegalArgumentException
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
