Skip to content

Commit 2d5a531

Browse files
Fix code formatting: remove extra blank lines and fix spacing
1 parent dbf0b75 commit 2d5a531

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/main/java/com/thealgorithms/twopointer/MoveHash.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@
1313
package com.thealgorithms.twopointer;
1414

1515
public class MoveHash {
16-
1716

18-
19-
/** default constructor */
17+
/** default constructor */
2018
public MoveHash() {}
2119

2220
/**
@@ -55,7 +53,7 @@ public static String movehashtoend(String s) {
5553
* this continuos untill i reaches to end of string.
5654
*/
5755

58-
for (int i=0; i<c.length; i++) {
56+
for (int i = 0; i < c.length; i++) {
5957
if (c[i] != '#') {
6058
swap(i, j, c);
6159
j++;
@@ -77,7 +75,7 @@ public static void main(String[] args) {
7775
/** input part. */
7876
String input = "h#e#l###l#o";
7977

80-
/** output catches through the function. */
78+
/** output catches through the function. */
8179
String output = movehashtoend(input);
8280

8381
/** display appropriate output. */

src/test/java/com/thealgorithms/twopointer/MoveHashTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,6 @@ void testSwapFunction() {
5959
assertEquals('c', arr[0]);
6060
assertEquals('a', arr[2]);
6161
}
62+
}
63+
}
6264
}

0 commit comments

Comments
 (0)