mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-12-19 07:00:35 +08:00
style: enable MultipleVariableDeclarations in checkstyle (#5175)
Co-authored-by: vaibhav <vaibhav.waghmare@techprescient.com>
This commit is contained in:
@@ -18,7 +18,9 @@ public final class Tribonacci {
|
||||
if (n == 0) return 0;
|
||||
if (n == 1 || n == 2) return 1;
|
||||
|
||||
int first = 0, second = 1, third = 1;
|
||||
int first = 0;
|
||||
int second = 1;
|
||||
int third = 1;
|
||||
|
||||
for (int i = 3; i <= n; i++) {
|
||||
int next = first + second + third;
|
||||
|
||||
Reference in New Issue
Block a user