mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-08 18:32:56 +08:00
Update RomanToInteger.java
declaring serialVersionUID
This commit is contained in:
@ -4,7 +4,13 @@ import java.util.*;
|
|||||||
|
|
||||||
public class RomanToInteger {
|
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;
|
||||||
|
|
||||||
|
{
|
||||||
put('I', 1);
|
put('I', 1);
|
||||||
put('V', 5);
|
put('V', 5);
|
||||||
put('X', 10);
|
put('X', 10);
|
||||||
|
Reference in New Issue
Block a user