至少对于你这个,偶数位的转换为小写
String st1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
byte[] bytes = st1.getBytes();
for (int i = 0; i < bytes.length; i++) {
if (i % 2 == 0) {
bytes[i] = (byte) (bytes[i] + 32);
}
}
st1 = new String(bytes);
留个邮箱我发给你啊。。效果图如上: