i tried a bunch of things but i dont get how to solve this ...
package fr.codegym.task.task07.task0718;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
/*
Vérification d'ordre
*/
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader lecteur = new BufferedReader(new InputStreamReader(System.in));
ArrayList<String> liste = new ArrayList<String>();
int min = 0;
for(int i =0;i<10;i++){
String a = lecteur.readLine();
liste.add(a);
}
for(int i = 0 ; i < liste.size(); ) {
if (liste.get(i).length() <= liste.get(i+1).length())
{
i++;
}
else
{
System.out.println(i+1);
}
break;
}
}
}