Code To Use
java.util.Optional<T>
Code To Implement
Max
class: |
Max.java |
![Java.png](/cse425s/images/thumb/2/26/Java.png/32px-Java.png) |
methods: |
max |
package: |
optional.assignment |
source folder: |
src/main/java |
public static Optional<Integer> maximum(ImmutableList<Integer> xs)
Test
class: |
MaxTestSuite.java |
![Junit.png](/cse425s/images/thumb/6/64/Junit.png/48px-Junit.png) |
package: |
optional.assignment |
source folder: |
src/test/java |