值为“整数”的java列表<String>
有什么替代方案吗?(1组)
class team {
List<String> team = new ArrayList<String>
int score = 0;
}
是否有一个对象存储一个列表或一组“字符串”,可以保存一个整数的值
提前谢谢
你可以在下面搜索框中键入要查询的问题!
有什么替代方案吗?(1组)
class team {
List<String> team = new ArrayList<String>
int score = 0;
}
是否有一个对象存储一个列表或一组“字符串”,可以保存一个整数的值
提前谢谢
# 1 楼答案
听起来你需要一个评分对象:
然后是其中的
List<Score>