Skip to content

Commit

Permalink
Fix example for multi-combinations of the overview page
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaukov committed Sep 8, 2016
1 parent ea7d50d commit bb2edd3
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/main/javadoc/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,20 +152,21 @@ <h3> 4. Multi-combinations</h3>
</pre>
</blockquote>
<p>Example. Generate 3-combinations with repetitions of the set (apple, orange). You can pass an array
as the parameter in the function.
as a parameter of the function.
<blockquote>
<pre>
Generator.combination(new String[] { "apple", "orange" })
.multi(3)
.stream()
Generator.combination(new String[] { "apple", "orange" })
.multi(3)
.stream()
.forEach(System.out::println);
</pre>
</blockquote>
<blockquote>
<pre>
[apple, apple, apple]
[apple, apple, orange]
[apple, orange, orange]
[orange, orange, orange]
[apple, apple, apple]
[apple, apple, orange]
[apple, orange, orange]
[orange, orange, orange]
</pre>
</blockquote>

Expand Down

0 comments on commit bb2edd3

Please sign in to comment.