Write a program to get the values as an array from given input by using one of the Map interface methods.
Input (Map) |
Output (in[]) |
{A=1, B=2, C=3, D=4, E=5} |
{1, 2, 3, 4, 5} |
{Red=-12, Yellow=22, Blue=55, White=33, Green=44} |
{-12, 22, 55, 33, 44} |
{Book=-1, Pen=2, Pencil=-3, Scale=4} |
{-1, 2, -3, 4} |
null |
null |