Java: split() returns [Ljava.lang.String;@186d4c1], why?

后端 未结 3 1399
陌清茗
陌清茗 2020-12-18 12:04

And i have no idea why!

I bascially have a STRING (yes, not an array), that has the following contents:

[something, something else, somoething, trall         


        
3条回答
  •  感动是毒
    2020-12-18 12:25

    When you do toString on an Array, you just get the internal representation. Not that useful. Try Arrays.toString(what comes back from split) for something more readable.

提交回复
热议问题