simple JAVA ✅ || Runtime 0 ms✅ || Beats 100% ✅
\n# Code\n\nclass Solution {\n    public int[] getConcatenation(int[] nums) {\n\n        if(nums.length<1)\n            return nums;\n\n        int ans[]=new in
\n# Code\n```\nclass Solution {\n    public int[] getConcatenation(int[] nums) {\n\n        if(nums.length<1)\n            return nums;\n\n        int ans[]=new int[nums.length*2];\n\n        for(int i=0;i<nums.length*2;i++){\n            if(i<nums.length){\n                ans[i]=nums[i];\n            }else\n            {\n                ans[i]=nums[i-nums.length];\n            }\n        }\n    return ans;\n    }\n}\n```\n![6g51ly.jpg](https://assets.leetcode.com/users/images/04ccddd1-cce3-4419-8d37-a6865ad24adc_1676643865.6697936.jpeg)\n\n
['Array', 'Java']