public class FizzBuzz{ public String fizzBuzz(int num){ if (num % 3 == 0 && num % 5 == 0) { return "fizzbuzz"; } if (num % 3 == 0) { return "fizz"; } else if (num % 5 == 0) { return "buzz"; } return "" + num; } }