Java入門/LinkedHashMapとIteratorの使い方

Javaコード:
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;

public class Studyit {
public static void main(String[] args) {
Map<String,String>map =new LinkedHashMap<String,String>();
map.put(“apply_year", “2016");
map.put(“apply_mont", “02");
map.put(“apply_day", “19");
for (Iterator iterator = map.values().iterator();iterator.hasNext();){
String strTime=(String)iterator.next();
System.out.println(“LinkedHap value :"+strTime);
}
}

Java

Posted by arkgame