修剪数组中的所有字符串元素
//package com.nowjava; /** 来 自 时代Java - nowjava.com **/ public class Main { public static void main(String[] argv) { String[] array = new String[] { "1", "abc", "level", null, "nowjava.com", "asdf 123" }; System.out.println(java.util.Arrays.toString(trimAll(array))); } public static String[] trimAll(String[] array) { for (int