mirror of
https://github.com/sigmasternchen/fibonacci
synced 2025-03-15 08:08:58 +00:00
18 lines
No EOL
524 B
Java
18 lines
No EOL
524 B
Java
package business;
|
|
|
|
public class FibonacciBusinessApplication {
|
|
public static void main(String[] args) {
|
|
System.out.printf("Result: %d\n",
|
|
new IntegerFibonacciSequence(1, 1)
|
|
.stream()
|
|
.limit(5)
|
|
.peek(
|
|
AbstractFibonacciSequence.prettyPrintConsumer(
|
|
System.out,
|
|
"%d + %d = %d\n"
|
|
)
|
|
).mapToInt(Integer::intValue)
|
|
.max()
|
|
.getAsInt());
|
|
}
|
|
} |