File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
src/main/java/org/adoptopenjdk/lambda/tutorial/exercise4 Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -20,19 +20,4 @@ public static Stream<Page> createPagesFrom(Stream<String> contents) {
2020 return contents .map (Page ::new );
2121 }
2222
23-
24- public static void main (String ... args ) {
25- Page p1 = new Page ("this is the first page" );
26- Page p2 = new Page ("this is the second page" );
27-
28- Document myDocument = new Document (Arrays .asList (p1 , p2 ));
29-
30- Printers .printPages (myDocument , 0 , 1 );
31-
32- List <Page > pages = Arrays .asList (p1 , p2 );
33- pages .stream ().map (Page ::getContent ).forEach (Printers ::print );
34-
35- Stream <Page > pagesFromContent = createPagesFrom (Arrays .asList ("a" , "b" ).stream ());
36- System .out .println (pagesFromContent .collect (toList ()));
37- }
3823}
You can’t perform that action at this time.
0 commit comments