mirror of
https://github.com/TheAlgorithms/Java.git
synced 2026-03-13 08:40:43 +08:00
Format code with prettier (#3375)
This commit is contained in:
@@ -4,8 +4,7 @@ import java.util.*;
|
||||
|
||||
public class RomanToInteger {
|
||||
|
||||
private static Map<Character, Integer> map
|
||||
= new HashMap<Character, Integer>() {
|
||||
private static Map<Character, Integer> map = new HashMap<Character, Integer>() {
|
||||
/**
|
||||
* */
|
||||
private static final long serialVersionUID = 87605733047260530L;
|
||||
@@ -20,6 +19,7 @@ public class RomanToInteger {
|
||||
put('M', 1000);
|
||||
}
|
||||
};
|
||||
|
||||
// Roman Number = Roman Numerals
|
||||
|
||||
/**
|
||||
@@ -29,7 +29,6 @@ public class RomanToInteger {
|
||||
* @return integer
|
||||
*/
|
||||
public static int romanToInt(String A) {
|
||||
|
||||
A = A.toUpperCase();
|
||||
char prev = ' ';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user