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(queryNo + " =this is no");
and the output is:
[C@177b4d3 =this is no
What are these characters, do you have any idea?
That’s how
toString()is implemented for arrays.The
[Cdenotes that is a char array,177b4d3is its hashcode.You may want to look at
if you want to see your original String again, you need this: