Skip to content
Snippets Groups Projects
Commit 9b1f0e72 authored by EL GAOUAL Zaid's avatar EL GAOUAL Zaid
Browse files

Iterator

parent f4d1c5c9
No related branches found
No related tags found
No related merge requests found
......@@ -25,9 +25,11 @@ public class DistinctColorGenerator implements ColorGenerator {
if (j == neighboursColor.size() - 1 && i == colors.size() - 1) {return defaultColor;}
if (j == neighboursColor.size() - 1 && i<colors.size()-1) {
j=0;
i+=1;
continue;}
j+=1;
i++;
}
else{
j++;
}
}
return colors.get(i);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment