Could Someone Help me ????😂😂😂😂😂😂
package fr.codegym.task.task07.task0708;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
/*
La chaîne la plus longue
*/
public class Solution {
private static List<String> chaines; ;
public static void main(String[] args) throws Exception {
chaines = new ArrayList<>();
BufferedReader m =new BufferedReader(new InputStreamReader(System.in));
for(int i=0;i<5;i++){
String s = m.readLine();
chaines.add(s);//écris ton code ici
}
int max = chaines.get(0).length() ;
for (int i=1;i<5;i++) {
if (chaines.get(i).length() > max) {
max = chaines.get(i).length();
}
}
for (int i=0;i<=chaines.size();i++){
if(chaines.get(i).length()== max){
System.out.println(chaines.get(i));
}
}
}
}