Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.Map;

public class Main {
    private static void incrementCardCount(Map<String, Integer> map, String blueprintId, int incrementBy) {
        final Integer oldCount = map.get(blueprintId);
        if (oldCount == null)
            map.put(blueprintId, incrementBy);
        else
            map.put(blueprintId, oldCount + incrementBy);
    }
}