その中にハッシュマップと値があります。ここで、マップ内の値をキーとして、キーを値として設定したいと考えています。誰でもアイデアを提案できますか?
マイマップは
Map<String, String> col=new HashMap<String, String>();
col.put("one","four");
col.put("two","five");
col.put("three","Six");
ここで、別のマップを作成し、上記のように別の方法で配置したいと思います。つまり、
Map<String, String> col2=new HashMap<String, String>();
col.put("five","one");
col.put("four","two");
col.put("Six","three");
誰でもアイデアがありますか?ありがとう