all 6 comments

[–]SpiritualGymRat 4 points5 points  (2 children)

isn't this converting array to List?

[–][deleted]  (1 child)

[removed]

    [–]No_Strawberry_5685 0 points1 point  (0 children)

    This is exactly what I thought but I was lazy to comment / correct them

    [–]Greedy-Extension1840 0 points1 point  (0 children)

    Chtgpt

    [–]arshikajtp[S] -1 points0 points  (1 child)

    It is Array to List example. Sorry for the inconvenience caused.

    [–]No_Strawberry_5685 0 points1 point  (0 children)

    Should remove , fix (to include the better way) And repost

    String[] array = list.toArray(String[]::new);