what's the problem code is not running and neither showing any error
package com.codegym.task.task07.task0709;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
/*
Expressing ourselves more concisely
*/
public class Solution {
public static void main(String[] args) throws Exception {
ArrayList<String> list = new ArrayList<String>();
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int shortString = list.size();
for(int i=0;i<5;i++){
String s= reader.readLine();
list.add(s);
}
for(int j=0;j<list.size();j++){
if(list.get(j).length() < shortString){
shortString=list.get(j).length();
}
}
for(int k=0;k<list.size();k++){
if(list.get(k).length()==shortString){
System.out.println(list.get(k));
}
}
}
}