компилятор ругает
public class Solution {
public static void main(String[] args) throws IOException {
//напишите тут ваш код
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String[] mas = new String[10];
for(int i = 0; i<=9; i++)
{
mas[i] = reader.readLine();
}
for(int j = 0; j<=9;j++)
{
for(int i = 0; i<=9; i++)
{
String x = null;
if(mas[i].length()<mas[i+1].length())
{
x = mas[i];
mas[i]=mas[i+1];
x = mas[i];
}
}
}
for(int i = 0; i<=9;i++)
{
System.out.println(mas[i]);
}
}
}