Skip to content

第十四章 流式编程 有一处代码输出漏掉了一行 #384

Closed
@funnycoding

Description

@funnycoding

第十四章 流式编程
章节:在 map() 中组合流
最后一个例子 FileToWordsRegexp.java 中
输出应该是

Not much of a cheese shop really 
is it 

这里漏掉了第二行,第二行对应例子中代码:

  FileToWords.stream("Cheese.dat")
                .skip(7)
                .limit(2)
                .forEach(s -> System.out.format("%s ", s));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions