I'm confused a bit. I couldn't find the answer anywhere ;(
I've got an String array:
String[] arr = ["1", "2", "3"];
then I convert it to a string by:
String str = Arrays.toString(arr);
System.out.println(str);
I expected to get the string "123"
, but I got the string "[1,2,3]"
instead.
How could I do it in java? I'm using Eclipse IDE
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…