Difference between revisions of "Optional Assignment"
Jump to navigation
Jump to search
(Created page with "[https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html java.util.Optional<T>]") |
|||
Line 1: | Line 1: | ||
+ | =Code To Use= | ||
[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= | ||
+ | ==Max== | ||
+ | {{JavaToImplement|Max|max|optional.assignment}} | ||
+ | |||
+ | <nowiki>public static Optional<Integer> maximum(ImmutableList<Integer> xs)</nowiki> | ||
+ | |||
+ | =Test= | ||
+ | {{TestSuite|MaxTestSuite|optional.assignment}} |