Difference between revisions of "Optional Assignment"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | + | Note this studio is '''required'''. It helps us gain experience using [https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html java.util.Optional<T>]. | |
− | [https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html java.util.Optional<T>] | ||
=Code To Implement= | =Code To Implement= |
Revision as of 08:31, 12 June 2019
Note this studio is required. It helps us gain experience using java.util.Optional<T>.
Code To Implement
Max
class: | Max.java | |
methods: | max | |
package: | optional.assignment | |
source folder: | src/main/java |
public static Optional<Integer> maximum(ImmutableList<Integer> xs)
Test
class: | MaxTestSuite.java | |
package: | optional.assignment | |
source folder: | src/test/java |