Create a TreeMap named map and fill it with the following three key-value pairs:
Omega - 24
Alpha - 1
Gamma - 3
where strings are keys and numbers are values.
The code for displaying the map is already written.
Create a TreeMap named map and fill it with the following three key-value pairs:
Omega - 24
Alpha - 1
Gamma - 3
where strings are keys and numbers are values.
The code for displaying the map is already written.
Sample Input 1:
Sample Output 1:
{Alpha=1, Gamma=3, Omega=24}Create a free account to access the full topic