Skip to content

Commit 78a9550

Browse files
author
ghost
committed
reverted change
1 parent 4243ac0 commit 78a9550

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/thealgorithms/ciphers/ProductCipher.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ public static void main(String[] args) {
2525
System.out.println(substitutionOutput);
2626

2727
// Transposition encryption
28-
StringBuilder transpositionInput = new StringBuilder(substitutionOutput.toString());
28+
String transpositionInput = substitutionOutput.toString();
2929
int modulus = transpositionInput.length() % n;
3030
if (modulus != 0) {
3131
modulus = n - modulus;
3232

3333
for (; modulus != 0; modulus--) {
34-
transpositionInput.append("/");
34+
transpositionInput += "/";
3535
}
3636
}
3737
StringBuffer transpositionOutput = new StringBuffer();

0 commit comments

Comments
 (0)