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

26th Feb 2020, 1:59 PM
Skeleton System
Skeleton System - avatar
1 Antwort
+ 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)
26th Feb 2020, 2:32 PM
andriy kan
andriy kan - avatar