Hacker News new | ask | show | jobs
by morelisp 1325 days ago
In what languages do maps shrink? You may be surprised.
1 comments

C# has trim excess but I do t think Java does, ...just the two I checked.

https://learn.microsoft.com/en-us/dotnet/api/system.collecti...

Java HashMap does not shrink.
Sorry that's a typo. don't*