Skip to content

part1 and part2 done by Gladun Nikita#43

Open
nikitos19 wants to merge 1 commit intojava8-course:masterfrom
nikitos19:master
Open

part1 and part2 done by Gladun Nikita#43
nikitos19 wants to merge 1 commit intojava8-course:masterfrom
nikitos19:master

Conversation

@nikitos19
Copy link

No description provided.

if(startInnerInclusive < array[0].length){
action.accept(array[startOuterInclusive][startInnerInclusive]);
startInnerInclusive++;
if(startInnerInclusive == array[0].length && startOuterInclusive < endOuterExclusive){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this check to the beginning of the method to reduce nesting.

throw new UnsupportedOperationException();
DoubleConsumer consumer = value -> action.accept(new IndexedDoublePair(currentIndex,value));
inner.forEachRemaining(consumer);
currentIndex++;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect. Add test with collect(toList()).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants