Commit ac786b8f by 杨林龙

添加测试用例

1 parent 905f757a
package cn.com.glsx.test;
import cn.hutool.json.JSONUtil;
import com.google.common.collect.Maps;
import lombok.extern.slf4j.Slf4j;
import java.util.HashMap;
/**
* @author Yanglinlong
* @date 2022/4/16 10:08
*/
@Slf4j
public class MapTestUtil {
public static void main(String[] args) {
HashMap<Integer, String> hashMap = Maps.newHashMap();
hashMap.put(1, "yang");
hashMap.put(2, "lin");
hashMap.put(3, "long");
for (int i = 0; i < 2; i++) {
String s = hashMap.get(i);
System.out.println("s = " + s);
hashMap.keySet().remove(i);
}
System.out.println("hashMap = " + JSONUtil.toJsonStr(hashMap));
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!