Java solution for beginners || self-explanatory || clean-code
import java.util.*;\nclass Solution {\n    public int minMovesToSeat(int[] seats, int[] students) {\n        int sum = 0;\n        Arrays.sort(seats);\n        
import java.util.*;\nclass Solution {\n    public int minMovesToSeat(int[] seats, int[] students) {\n        int sum = 0;\n        Arrays.sort(seats);\n        Arrays.sort(students);\n        \n        for(int i = 0;i<seats.length;i++){\n            if(seats[i] >= students[i]){\n                sum = sum + (seats[i] - students[i]);\n            }\n            \n            else if(seats[i] < students[i]){\n                sum = sum + (students[i] - seats[i]);\n            }\n        }\n        \n        return sum;\n    }\n}
['Java']