删除java String[]数组中重复值
如:有动态数组String[]strs={"甲供=0","自购=0","甲控=0","调入=0","采购站=0","材料厂=0","材料厂=200","调入=199","...
如:有动态数组String[] strs={"甲 供=0","自 购=0","甲 控=0","调 入=0","采购站=0","材料厂=0","材料厂=200"," 调 入=199"," 甲 控=150"}
去除数组当中“=”前面汉字相同的元素,
我想要得到的结果是:
String[] st={"甲 供=0","自 购=0","采购站=0","材料厂=200"," 调 入=199"," 甲 控=150"}
请问大侠,这个问题怎么解决呢? 展开
去除数组当中“=”前面汉字相同的元素,
我想要得到的结果是:
String[] st={"甲 供=0","自 购=0","采购站=0","材料厂=200"," 调 入=199"," 甲 控=150"}
请问大侠,这个问题怎么解决呢? 展开
6个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询