diff --git a/src/main/java/algoLike/push/LoseA.java b/src/main/java/algoLike/push/LoseA.java index 7777001..1de57b5 100644 --- a/src/main/java/algoLike/push/LoseA.java +++ b/src/main/java/algoLike/push/LoseA.java @@ -24,8 +24,11 @@ public void updateHandsA(@FormParam("handsA") List handsA_json) throws JsonProcessingException { List> handsA = new ArrayList<>(); for (String str: handsA_json) { - Map i = new ObjectMapper().readValue(str, HashMap.class); - handsA.add(i.entrySet().iterator().next()); + Map i = new ObjectMapper().readValue(str, HashMap.class); + handsA.add(new AbstractMap.SimpleEntry<>( + Integer.parseInt(i.entrySet().iterator().next().getKey()), + i.entrySet().iterator().next().getValue()) + ); } this.value = (handsA.stream().filter(item -> item.getValue()==false).collect(Collectors.toList()).size()==0); }