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
Post a Comment