Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.HashMap;

public class Main {
    public static int getTotalValueCount(HashMap<String, Integer> hm) {
        int count = 0;
        for (Integer intVal : hm.values()) {
            count += intVal.intValue();
        }
        return count;
    }
}