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
--查询验证 select ltrim(col1) from t1; --去掉字段值左边空格update t1 set col1=ltrim(col1); --去掉字段值右边空格update t1 set col1=rtrim(col1); --去掉字段值两边空格update t1 set col1=trim(col1); t1:表名 clo1:字段
import java.util.*; class test { public static void main(String[] args) { char a[] = {'b', 'a', 'c'}; String b = "111"; f(a,b); System.out.println(Arrays.toString(a)+" "+b); } public static void f(char[] a, String b) { a[1] = 'c'; b =