Easy Solution || Beats 100% || Few lines of Code
\n# Code\n\nclass Solution {\n    public List<String> fizzBuzz(int n) {\n        List<String> ans = new ArrayList<>();\n        \n        for(int i=1;i<=n;i++) 
\n# Code\n```\nclass Solution {\n    public List<String> fizzBuzz(int n) {\n        List<String> ans = new ArrayList<>();\n        \n        for(int i=1;i<=n;i++) {\n            if(i%3==0 && i%5==0) {\n                ans.add("FizzBuzz");\n            }else if(i%3==0) {\n                ans.add("Fizz");\n            }else if(i%5 == 0) {\n                ans.add("Buzz");\n            }else {\n                ans.add(String.valueOf(i));\n            }\n        }\n        return ans;\n    }\n}\n```
['Java']