import java.util.HashMap; import java.util.Map; public class Main { public static void main(String[] args) { Map map=new HashMap&l
Use T[] toArray(T[] a) from Collection instead.