Solution by Java 8 Stream
\n    public List<String> fizzBuzz(int n) {\n        final IntFunction<String> func = i -> i % 15 == 0 ? "FizzBuzz" : (i % 3 == 0 ? "Fizz" : (i % 5 == 0 ? "Buzz
```\n    public List<String> fizzBuzz(int n) {\n        final IntFunction<String> func = i -> i % 15 == 0 ? "FizzBuzz" : (i % 3 == 0 ? "Fizz" : (i % 5 == 0 ? "Buzz" : String.valueOf(i)));\n        return IntStream.rangeClosed(1, n).mapToObj(func).collect(Collectors.toList());\n    }\n```
[]