paranid5

3

Apr 4th, 2021 (edited)
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.46 KB | None | 0 0
  1. import java.io.*;
  2. import java.util.*;
  3.  
  4. class Main {
  5.     public static final void main(final String[] args) throws IOException {
  6.         System.out.println(
  7.                 Arrays.stream(new BufferedReader(new FileReader("src/24-5.txt"))
  8.                         .readLine()
  9.                         .split("\\)"))
  10.                         .max(Comparator.comparing(String::length))
  11.                         .get()
  12.                         .length()
  13.         );
  14.     }
  15. }
Add Comment
Please, Sign In to add comment