We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1e525a commit cef01efCopy full SHA for cef01ef
CCSPiJ/src/chapter1/CompressedGene.java
@@ -64,7 +64,7 @@ public String decompress() {
64
return "";
65
}
66
// create a mutable place for characters with right capacity
67
- StringBuilder builder = new StringBuilder(length / 2);
+ StringBuilder builder = new StringBuilder(length);
68
for (int i = 0; i < (length * 2); i += 2) {
69
final int firstBit = (bitSet.get(i) ? 1 : 0);
70
final int secondBit = (bitSet.get(i + 1) ? 1 : 0);
0 commit comments