Code To Implement
minToMaxExclusive
class: |
Ranges.java |
![Java.png](/cse425s/images/thumb/2/26/Java.png/32px-Java.png) |
methods: |
minToMaxExclusive |
package: |
range.assignment |
source folder: |
src/main/java |
public static Iterable<Integer> minToMaxExclusive(int min, int maxExclusive)
Output
class: |
RangesExample.java |
![Presentation icon-72a7cf.svg](https://upload.wikimedia.org/wikipedia/commons/thumb/3/38/Presentation_icon-72a7cf.svg/48px-Presentation_icon-72a7cf.svg.png) |
package: |
range.example |
source folder: |
src/main/java |
The code:
for(int i : Ranges.minToMaxExclusive(4, 12)) {
System.out.println(i);
}
produces the output:
4
5
6
7
8
9
10
11
Test
class: |
RangesTestSuite.java |
![Junit.png](/cse425s/images/thumb/6/64/Junit.png/48px-Junit.png) |
package: |
range.assignment |
source folder: |
src/test/java |