SCJP題庫第202題

 
Given:
NumberNames nn = new NumberNames();
nn.put("one", 1);
System.out.println(nn.getNames());
Place the code into position to create a class that maps from Strings to integer values. The result of execution must be [one]. Some options may be used more than once.


Ans:

解說:
此題問建立一個字串對應到整數值的集合

Comments

Popular posts from this blog

Android-使用webview在V3版的Google地圖GPS定位