public class Base {
private void test() {
String aStr = "_One_";
String bStr = aStr;
bStr = aStr.trim();
System.out.println("[" + aStr + "," + bStr + "]");
}
static public void main(String[] a) {
new Base().test();
}
}
其中“_”表示一个空格,运行的结果是 ( )
A.[One,_One_]
B.[_One_,One]
C.[One,One]
D.[_One_,_One_]
|
|