7980818283848586878889
} RnaAlphabet alphabet = RnaAlphabet.getInstance(); StringBuilder sb = new StringBuilder(); for (int i = 0; i < str1.length(); i++) { sb.append(alphabet.complement(str1.charAt(i))); } result.put("command", "OK"); result.put("result", sb.toString());
5556575859606162636465
} RnaAlphabet alphabet = RnaAlphabet.getInstance(); StringBuilder sb = new StringBuilder(); for (int i = 0; i < string.length(); i++) { sb.append(alphabet.complement(string.charAt(i))); } response.setResponse(sb.toString()); return response;