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 {

    public static String getMapValue(Map<String, Object> map, String key) {
        String value = "";
        if (map != null) {
            if (map.containsKey(key) && map.get(key) != null) {
                value = (String) map.get(key);
            }
        }
        return value;
    }
}