Browse Source

fixed an error in my result

Christian Sheridan 6 years ago
parent
commit
55a74e74ad
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/main/java/FizzBuzz.java

+ 1
- 1
src/main/java/FizzBuzz.java View File

@@ -6,6 +6,6 @@ public class FizzBuzz {
6 6
             return "Fizz";}
7 7
             else if (num1 % 5 == 0){
8 8
             return "Buzz";
9
-        } else { return "2";}
9
+        } else { return Integer.toString(num1);}
10 10
 
11 11
 }}