string to char array, showing silly characters

后端 未结 4 1438
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:08

    you are printing the object

    queryno, as queryno is a character array of on dimension and java is an object oriented language which holds every thing in the form of classes it gives the class name [C to your array where [ denotes total dimension and C denotes character type of array, Rest is the hashcode of the object.

提交回复
热议问题