package com.ynet.utils; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * Created by Arya on 2017/11/3 0003. */ public class StringUtil { //去除所有空格 public static String replaceAllBlank(String str) { String s = ""; if (str!=nul
public class Demo { /** * 去掉重复值 */ public static void main(String[] args) { String test = "100,120,166,1555,120,150,100"; String[] test1 = test.split(","); ArrayList list = new ArrayList(); for (int i = 0; i < test1.length; i++) { i