i think it no problem, but....
help me ,plz
thank u a lot !! ;)
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 {
//write your code hereint
int min=0;
ArrayList<String>strings = new ArrayList<String>();
ArrayList<Integer> ttt = new ArrayList<Integer>();
for(int i =0;i<5;i++)
{
BufferedReader reader =new BufferedReader(new InputStreamReader(System.in));
String s = reader.readLine();
strings.add(s);
ttt.add(s.length());
min = ttt.get(0);
min = ttt.get(i) <= min ? ttt.get(i) : min ;
}
for(int i =0;i<5;i++)
{
int b = ttt.get(i);
if ( b==min)
System.out.println(strings.get(i));
}
}
}