Skip to content

Java 8

Learn more Java

  • Home
  • Java 8
  • Interview Questions
  • About
  • Contact

Category: Interview Questions

Program for Fibonacci series using Streams in Java 8

December 23, 2016Posted in Interview QuestionsLeave a comment
Stream.iterate(new BigInteger[]{ BigInteger.ONE, BigInteger.ONE },
               p->new BigInteger[]{ p[1], p[0].add(p[1]) })
      .forEach(p->System.out.println(p[0]));

Share this:

  • Tweet
Like Loading...

Java 8

Please Click on the Java 8 for table of contents. I hope you enjoy the tutorials. If you want to contribute please email me at gaddam.rahul.kumar@gmail.com

Follow Me!

  • View rahul.meekfellow’s profile on Facebook
  • View raulmeek’s profile on Twitter
  • View raulmeek’s profile on Instagram
  • View #’s profile on Pinterest
  • View rahulkumargaddam’s profile on LinkedIn
  • View raulkg’s profile on GitHub
  • View #’s profile on YouTube
  • View #’s profile on Vimeo
Website Powered by WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Subscribe Subscribed
    • Java 8
    • Already have a WordPress.com account? Log in now.
    • Java 8
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
%d
    Design a site like this with WordPress.com
    Get started