0
Why is output so weird
I randomly thought of making this code and thought it would be a error, but this is very very weird of a code https://code.sololearn.com/cMMYUCmx99uy/?ref=app
1 Answer
+ 1
x is array.
You use println to print an array, which is an object. println uses Obect.toString(), which default behaviour is to return some string that describes the Object (its name + @ + hash).
replace x in line #6 to y:
System.out.println(y)