Skip to content

Fix code error#2295

Merged
Snailclimb merged 1 commit intoSnailclimb:mainfrom
Gemaxis:main
Mar 2, 2024
Merged

Fix code error#2295
Snailclimb merged 1 commit intoSnailclimb:mainfrom
Gemaxis:main

Conversation

@Gemaxis
Copy link
Copy Markdown
Contributor

@Gemaxis Gemaxis commented Mar 2, 2024

When using 'System.out.println(mapResult)';

The output appears as follows:

[[Ljava.lang.String;@506e6d5e, [Ljava.lang.String;@96532d6, [Ljava.lang.String;@3796751b]

To print the arrays properly, they should be formatted as follows:

mapResult.forEach(arrays-> System.out.println(Arrays.toString(arrays)));

Outputs:

[APPLE, BANANA, CHERRY]
[ORANGE, GRAPE, PEAR]
[KIWI, MELON, PINEAPPLE]

@Snailclimb Snailclimb merged commit 955c827 into Snailclimb:main Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants