plis help me
package com.codegym.task.task07.task0718;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
/*
Checking the order
*/
public class Solution{
public static void main(String[] args) throws IOException{
//write your code here
ArrayList<String> list = new ArrayList<String>();
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
for(int i = 0; i < 10; i++){
String s = reader.readLine();
list.add(s);
}
for(int j = 0;j<8;j++){
if(
!(list.get(j).length()<list.get(j+1).length())
){
System.out.println(j);
}
}
}
}