如何将特定的HashMap条目移动到Last位置?
例如,我有像这样的HashMap值:
HashMap<String,Integer> map = new HashMap<String,Integer>();
map= {Not-Specified 1, test 2, testtest 3};
Run Code Online (Sandbox Code Playgroud)
"未指定"可能处于任何位置.它可能首先出现在地图的中间.但我想把"未指定"移到最后一个位置.
我怎样才能做到这一点?提前致谢.