Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.util.*;

public class Main {
    public static void addIntValue(Map map, Object key, int value) {
        Object o = map.get(key);
        if (o == null)
            map.put(key, new Integer(value));
        else
            map.put(key, new Integer(((Integer) o).intValue() + value));
    }
}