Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class d {
- public static void main(String[] args) throws Exception
- {
- BufferedReader reader= new BufferedReader(new InputStreamReader(System.in));
- ArrayList<String> s = new ArrayList<String>();
- s.add(0,reader.readLine());
- String max=null;
- for(int i=1;i<=4;i++)
- {
- s.add(i,reader.readLine());
- if (s.get(i-1).length() >s.get(i).length()){
- s.set(0, s.get(i));
- }
- }
- System.out.print(s.get(0));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement