Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.ArrayList;

import java.util.Iterator;
import java.util.List;
import java.util.Map;

public class Main {
    /**
     * not tested yet
     * 
     * @param map
     * @return
     */
    public static List<Object> getMapValues(Map<Object, Object> map) {
        List<Object> valuemaplist = new ArrayList<Object>();

        Iterator<Object> iterator = map.keySet().iterator();
        while (iterator.hasNext()) {
            valuemaplist.add(map.get(iterator.next()));
        }
        return valuemaplist;
    }
}