Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.HashMap;
import java.util.Map;

public class Main {
    public static Map<String, Object> getProperties(Map<String, Object> map) {
        Map<String, Object> propertiesMap = new HashMap<String, Object>();
        for (String key : map.keySet()) {
            if (!key.startsWith("__")) {
                propertiesMap.put(key, map.get(key));
            }
        }
        return propertiesMap;
    }
}