package prjarrays;
import java.io.*;
import java.util.Arrays;
import java.util.Collections;
class BubbleSorting
{
public static void main(String[] args)throws IOException
{
BufferedReader a = new BufferedReader(new InputStreamReader(System.in));
int []num = {54,92,04,98};
-> Arrays.sort(num, Collections.reverseOrder());
for(int str : num)
{
System.out.print(str + " ");
}
}
}
cannot find symbol method sort(int[],java.util.Comparator<java.lang.Object>)
why do i get this error?..