1 package tests.jfun.yan.xml; 2 3 import java.util.Collection ; 4 import java.util.Map ; 5 import java.util.Properties ; 6 7 public class MapUser { 8 static String getProperty(Properties props, String key){ 9 return props.getProperty(key); 10 } 11 static Object get(Map map, Object key){ 12 return map.get(key); 13 } 14 public static Object at(Collection c, int i){ 15 return c.toArray()[i]; 16 } 17 public static Object first(java.util.LinkedList list){ 18 return list.getFirst(); 19 } 20 } 21 | Popular Tags |