r/java • • Jun 10 '24

[deleted by user]

[removed]

615 Upvotes

594 comments sorted by

View all comments

Show parent comment

1

u/singloon Jun 10 '24

You can do, do this now 😅

var userIds = Map.of();

8

u/Letho13 Jun 10 '24

Beware, that one is immutable 😉