日期:2014-05-20 浏览次数:20776 次
String[] strs = new String[]{"", null, "1", "a", "1 ", "a ", " 1", " a"};
String str;
for (int i = 0; i < strs.length; i++) {
str = "92=" + strs[i] == null ? "" : strs[i] + "|";
System.out.println(i + "\t[" + str + "]");
}
str = "92=" + strs[i] == null ? "" : strs[i] + "改成
------解决方案--------------------
";
str = "92=" + (strs[i] == null ? "" : strs[i]) + "
------解决方案--------------------
";