string to char array, showing silly characters

后端 未结 4 1392
Happy的楠姐
Happy的楠姐 2021-01-24 12:51

It is a really simple question but I need an another eye to look at my code:

String strtr = \"iNo:\";
char[] queryNo = strtr.toCharArray();
System.out.println(qu         


        
4条回答
  •  旧巷少年郎
    2021-01-24 13:20

    Arrays do not override toString(), it is inherited from Object.toString as

    public String toString() {
        return getClass().getName() + "@" + Integer.toHexString(hashCode());
    }
    

提交回复
热议问题