mirror of
https://github.com/TheAlgorithms/Java.git
synced 2026-03-13 08:40:43 +08:00
Update RomanToInteger.java
In case if lower case roman letters are supplied, we need to convert into single case(Upper case).
This commit is contained in:
@@ -29,6 +29,7 @@ public class RomanToInteger {
|
||||
*/
|
||||
public static int romanToInt(String A) {
|
||||
|
||||
A = A.toUpperCase();
|
||||
char prev = ' ';
|
||||
|
||||
int sum = 0;
|
||||
|
||||
Reference in New Issue
Block a user