Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.stream.Collectors;
- public class Main {
- public static void main(String[] args) throws Exception {
- String str = "JD\nJD\nJD";
- System.out.println(str);
- System.out.println(str.lines().collect(Collectors.toList()));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement