PowersOf2Iterable
Contents
Motivation
Experience with implementing interfaces.
Investigate
Mistakes To Avoid
Warning: Do NOT Parallelize |
Code to Implement
class: | PowersOfTwoLessThan.java | |
methods: | constructor iterator |
|
package: | slices.studio | |
source folder: | student/src/main/java |
constructor
method: public PowersOfTwoLessThan(int maxExclusive)
(sequential implementation only)
iterator
method: public Iterator<Integer> iterator()
(sequential implementation only)
Testing Your Solution
Correctness
class: | PowersOfTwoTestSuite.java | |
package: | powersoftwo.studio | |
source folder: | testing/src/test/java |