3rd and 4th task is not completed.
package com.codegym.task.task07.task0709;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Scanner;
/*
Expressing ourselves more concisely
*/
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
Scanner sc = new Scanner(System.in);
ArrayList<String> list = new ArrayList<String>();
String s;
int m = 0;
for(int i = 0; i < 5; i++) {
list.add(sc.nextLine());
s = list.get(i);
if(s.length() < m) {
m = s.length();
}
}
for(int j = 0; j < 5; j++) {
s = list.get(j);
if (s.length() == m) {
System.out.println(s);
}
}
}
}