**Java Fibonacci Series Program**

This topic demonstrates about the fibonacci series using java program.

**What is Fibonacci Series?**

It is a sequence of numbers such that the addition of previous number plus current number is equal to the next number.

**Example**

**Program Examples**

**1. Program to Find fibonacci series of numbers**

public class FibonacciEx
{
public static void main(String[] args)
{
int prev = 0, current = 1, next,start = 0;
System.out.print(prev+"\t"+current);
while(start <= 10)
{
next = prev + current;
System.out.print("\t"+next);
prev = current;
current = next;
start ++;
}
}
}

**Output**

0 1 1 2 3 5 8 13 21 34 55 89 144

**2. Program to Find Addition of Fibonacci series of numbers**

public class FibonacciEx
{
public static void main(String[] args)
{
int prev = 0, current = 1, next,start = 0,add=0;
System.out.print(prev+"\t"+current);
while(start <= 10)
{
next = prev + current;
System.out.print("\t"+next);
prev = current;
current = next;
start ++;
add += next;
}
System.out.println("\nAddition : "+add);
}
}

**Output**

0 1 1 2 3 5 8 13 21 34 55 89 144

Addition : 375