java - TreeMap Compile Error -


this code:

import java.util.*;   public class treemap {   public static void main(string[] args) {          map<string,integer> treemap = new treemap<string,integer>();          code fill treemap ie treemap.put("kevin", 36);        }       } 

and getting compiler error:

treemap.java:5: error: type treemap not take parameters    map<string,integer> treemap = new treemap<string,integer>();                                             ^ 

use full qualified class name java treemap class

new java.util.treemap<string,integer>() 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -