public static void main(String[] arg) {
new Base().test();
}
public static class Base {
private void test() {
String aStr = "_One_";
String bStr = aStr;
bStr = aStr.trim();
System.out.println("[" + aStr + "," + bStr + "]");
}
}
a) [One,_One_]
b) [_One_,One]
c) [One,One]
d) [_One_,_One_]
|
|