Foreach loops

This commit is contained in:
Raihaan Shouhell committed 2019-10-01 13:49:43 +08:00
1 parent 144642ca54
commit e5166f7f8d
2 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -905,10 +905,10 @@ public class Util {
}
byte[] bytes = new String(new int[] { codePoint }, 0, 1).getBytes(StandardCharsets.UTF_8);
for(int j=0;j<bytes.length;j++) {
for (byte aByte : bytes) {
out.append('%');
out.append(toDigit((bytes[j] >> 4) & 0xF));
out.append(toDigit(bytes[j] & 0xF));
out.append(toDigit((aByte >> 4) & 0xF));
out.append(toDigit(aByte & 0xF));
}
if(Character.charCount(codePoint) > 1) {