Can someone please help me finish this one. I've been stuck on this chapter for 2 weeks.
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 {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
ArrayList<String> list = new ArrayList<String>();
for (int i = 0; i < 10; i++){
String s = reader.readLine();
list.add(s);
}
for (int j = 0; j < 10; j++){
Integer x = list.get(j).length();
//If the list is ordered by increasing string length, then you don't need to display anything.
if (x > Integer.parseInt(list.get(j))){
System.out.println();
}
}
}
}