Skip to content

Commit 4bc0b60

Browse files
author
“gozhort”
committed
fix: resolve Checkstyle whitespace issues
1 parent 9ffc962 commit 4bc0b60

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/thealgorithms/strings/ReverseStringRecursive.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ public static String reverse(String str) {
2828
* @param string The input string to be reversed.
2929
* @return The reversed string.
3030
*/
31-
public static String reverseUsingStringBuilder(String string){
32-
if (string.isEmpty()){
31+
public static String reverseUsingStringBuilder(String string) {
32+
if (string.isEmpty()) {
3333
return string;
3434
}
3535
char[] chars = string.toCharArray();
3636
StringBuilder sb = new StringBuilder();
37-
for (int i = string.length() -1; i >= 0; i--){
37+
for (int i = string.length() - 1; i >= 0; i--) {
3838
sb.append(chars[i]);
3939
}
4040
return sb.toString();

0 commit comments

Comments
 (0)