One linear Java Solution Beats 100%
\n# Complexity\n- Time complexity:\n0 ms\nBeats 100.00%of users with Java\n\n- Space complexity:\n38.83 MB\nBeats 90.09%of users with Java\n\n# Code\n\nclass So
\n# Complexity\n- Time complexity:\n0 ms\nBeats 100.00%of users with Java\n\n- Space complexity:\n38.83 MB\nBeats 90.09%of users with Java\n\n# Code\n```\nclass Solution {\n    public int smallestEvenMultiple(int n) {\n        return ( n%2==0 ? n : (n*2) );\n    }\n}\n```
['Java']