Make code more readable by using StandardCharsets.UTF_8.
- Use String.getBytes(Charset) instead of String.getBytes(String) - Use new String(byte[], Charset) instead of new String(byte[], String) -> Get rid of UnsupportedEncodingException. -> Less try-catch blocks.
Showing
Please register or sign in to comment