<s>[INST] class Solution{
    public static void main(String[] args) {
        System.out.println(tasks["a", "b"]); 
    }

    public int[] tasks(String[] tasks) {
        int[] ans = new int[tasks.length];
        Arrays.sort(tasks);
        int index = 0;

        for (String task : tasks) {
            ans[index++] = task.charAt(0) - 'a' + 1;
        }

        return ans;
    }
}

This code is supposed to return an array of integers where each value in the array is the alphabetical order of each letter in the input string array. When I run this code, I get this error:

java.lang.Error: Unresolved compilation problem: 
The method tasks(String[]) is not applicable for the arguments (String, String)

How do I fix this?[/INST]