Very easy java solution
\n# Code\n\nclass Solution {\n    public int minMovesToSeat(int[] seats, int[] students) {\n        Arrays.sort(seats);\n        Arrays.sort(students);\n       
\n# Code\n```\nclass Solution {\n    public int minMovesToSeat(int[] seats, int[] students) {\n        Arrays.sort(seats);\n        Arrays.sort(students);\n        int n = seats.length;\n        int cnt = 0;\n        for(int i=0;i<n;i++){\n            int temp = seats[i]-students[i];\n            cnt+=Math.abs(temp);\n        }\n        return cnt;\n    }\n}\n\n```
['Sorting', 'Java']