Skip to content

Commit 7bebdb7

Browse files
authored
Update CatalanNumbers.java
1 parent 2500ee0 commit 7bebdb7

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/main/java/com/thealgorithms/maths/CatalanNumbers.java

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,4 @@ private static long factorial(final int n) {
3636
}
3737
return result;
3838
}
39-
40-
/**
41-
* Main method to test the Catalan number calculation.
42-
*/
43-
public static void main(String[] args) {
44-
for (int i = 0; i <= 10; i++) {
45-
System.out.println("Catalan number " + i + " is: " + catalan(i));
46-
}
47-
}
48-
}
39+
}

0 commit comments

Comments
 (0)