String s3 = "面向对象是以对象为核心..编程思想";
char[] c = s3.toCharArray();
char[] a = {c[0],c[c.length-1]};
String a2 = String.copyValueOf(a);
System.out.println(a2);
System.out.println("----------------------------------");