import java.util.*; public class transform { public static HashMap f(String x) { HashMap map = new HashMap(); String[] arr = new String[]{"고양이", "강아지", "귀여워", x}; for (int i = 0; i < arr.length/2 ; i++) { map.put(arr[i], arr[arr.length - i - 1]); } Set keySet = map.keySet(); Iterator keyIterator = keySet.iterator(); while (keyIterator.hasNext()) { String key = keyIterator.next(); String value = ..