Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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

public class Main {
    public static void main(String[] argv) throws Exception {
        Map map = new HashMap();
        Object[] objectArray = map.values().toArray();
        MyClass[] array = (MyClass[]) map.values().toArray(new MyClass[map.values().size()]);

    }
}

class MyClass {
}