์ฒด๊ฐ Level : โ
โ โ Review: ํด์ฌ๋งต ์ฌ์ฉ |
import java.util.HashMap;
class Solution {
public String solution(String rsp) {
String answer = "";
HashMap<Character,Character> m = new HashMap<>();
m.put('2','0'); m.put('5','2'); m.put('0','5');
for (char e : rsp.toCharArray()){
answer += String.valueOf(m.get(e));
}
return answer;
}
}