i am unable to understand the requirements what the admin has given . kind me let me me know what is wrong
package com.codegym.task.task07.task0709;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
/*
Expressing ourselves more concisely
*/
public class Solution {
private static List<String> string;
public static void main(String[] args) throws Exception {
//write your code here
string = new ArrayList<>();
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
for(int i = 0 ; i < 5; i++){
string.add(reader.readLine());
}
int shortestStrLength = string.get(0).length();
int index = 0;
for(int i = 0 ; i < string.size() ; i++){
if(shortestStrLength > string.get(i).length()){
shortestStrLength = string.get(i).length();
index = i;
}
}
System.out.println(shortestStrLength);
for(int j = 0 ; j < string.size(); j++){
if(shortestStrLength == string.get(j).length()){
System.out.println(string.get(index));
}
}
}
}