PowersOf2Iterable

From CSE231 Wiki
Revision as of 03:56, 18 January 2020 by Cosgroved (talk | contribs) (Created page with "=Motivation= Experience with implementing interfaces. =Mistakes To Avoid= {{warning | Do NOT Parallelize}} =Code to Implement= {{CodeToImplement|PowersOfTwoLessThan|construc...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Motivation

Experience with implementing interfaces.

Mistakes To Avoid

Attention niels epting.svg Warning: Do NOT Parallelize

Code to Implement

class: PowersOfTwoLessThan.java Java.png
methods: constructor
iterator
package: slices.studio
source folder: student/src/main/java

constructor

method: public PowersOfTwoLessThan(int maxExclusive) Sequential.svg (sequential implementation only)

iterator

method: public Iterator<Integer> iterator() Sequential.svg (sequential implementation only)

Testing Your Solution

Correctness

class: PowersOfTwoTestSuite.java Junit.png
package: powersoftwo.studio
source folder: testing/src/test/java