Optional Assignment

From CSE425S Wiki
Jump to navigation Jump to search

Code To Use

java.util.Optional<T>

Code To Implement

Max

class: Max.java 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
package: optional.assignment
source folder: src/test/java