4 ms·
As others have mentioned, there's the diamond operator which has been around since Java 7. > if you don't care what the type of map is You can use raw types,
by blauditore 9y ago
As others have mentioned, there's the diamond operator which has been around since Java 7.
> if you don't care what the type of map is
You can use raw types, it works perfectly fine (just generates a compiler warning). For explicitly being unspecific, you can also use a type wildcard (`?`).