can anybody help me about this error ?
" no suitable method found for sort(int[],java.util.Comparator<java.lang.Object>) method java.util.Arrays.<T>sort(T[],java.util.Comparator<? super T>) is not applicable (inference variable T has incompatible bounds equality constraints: int upper bounds: java.lang.Object) method java.util.Arrays.<T>sort(T[],int,int,java.util.Comparator<? super T>) is not applicable (cannot infer type-variable(s) T (actual and formal argument lists differ in length)). "
package com.codegym.task.task07.task0728;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Collections;
/*
In decreasing order
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int[] array = new int[20];
for (int i = 0; i < 20; i++) {
array[i] = Integer.parseInt(reader.readLine());
}
sort(array);
}
public static void sort(int[] array) {
Arrays.sort(array, Collections.reverseOrder());
Arrays.toString(array);
}
}