IO.println behavior on char[]
David Alayachew
davidalayachew at gmail.com
Sat Jun 28 16:36:08 UTC 2025
Is there a char[] overload? I just checked the javadoc for 24 and 25, and I
only see Object, String, and no-arg overloads. Not char[].
On Sat, Jun 28, 2025, 6:40 AM Ethan McCue <ethan at mccue.dev> wrote:
> I was going through some examples in my writing and noticed that
>
> IO.println(new char[] { 'a', 'b' });
>
> will hit the Object overload of System.out.println and not the char[]
> overload
>
> This breaks a few of my examples
> https://javabook.mccue.dev/arrays/aliasing
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20250628/6eab1b62/attachment.htm>
More information about the amber-dev
mailing list