From eb75ce5096ee9a82b3a9094538e598381906d02b Mon Sep 17 00:00:00 2001 From: Pa1sathvik <7vik.sathvik@gmail.com> Date: Mon, 10 Aug 2020 19:15:34 +0530 Subject: [PATCH] Update RomanToInteger.java In case if lower case roman letters are supplied, we need to convert into single case(Upper case). --- Conversions/RomanToInteger.java | 1 + 1 file changed, 1 insertion(+) diff --git a/Conversions/RomanToInteger.java b/Conversions/RomanToInteger.java index 0672a146..f66ab115 100644 --- a/Conversions/RomanToInteger.java +++ b/Conversions/RomanToInteger.java @@ -29,6 +29,7 @@ public class RomanToInteger { */ public static int romanToInt(String A) { + A = A.toUpperCase(); char prev = ' '; int sum = 0;