HashMap<String,short>的问题
改成HashMap<String,Short>就可以了。
HashMap不能使用基本数据类型。
原始类型   封装类

boolean      Boolean

char           Character

byte           Byte

short          Short

int              Integer

long           Long

float           Float

double      Double
posted on 2022-10-14 16:11  闻缺陷则喜何志丹  阅读(2)  评论(0编辑  收藏  举报  来源