
public class FibonacciSolver {
	private int N;
	private String FiboSeries;
	
	public FibonacciSolver() {
		this.N = 0;
		this.FiboSeries = "";
	}
	
	public FibonacciSolver(int n) {
		this.N = n;
		this.FiboSeries = "";
	}
	
	public void SetN(int n) {
		this.N = n;
	}
	
	public void solver() {
		int ctr;
		int firstNum = 0;
		int secondNum = 1;
		int nextNum = 0;
		FiboSeries = "Fibonacci Series is: ";
		
		for(ctr = 0; ctr < N; ctr++){
			FiboSeries = FiboSeries + " " + nextNum;
			firstNum = firstNum + secondNum;
			secondNum = nextNum;
			nextNum = firstNum;
		}
	}
	
	public String returnSeries(){
		return this.FiboSeries;
	}
	
}

@@ -1,8 +1,1121 @@
+/*%0D%0AThe MIT License (MIT)%0D%0A%0D%0ACopyright (c) 2015-2016 John Neijzen%0D%0A%0D%0APermission is hereby granted, free of charge, to any person obtaining a copy%0D%0Aof this software and associated documentation files (the %22Software%22), to deal%0D%0Ain the Software without restriction, including without limitation the rights%0D%0Ato use, copy, modify, merge, publish, distribute, sublicense, and/or sell%0D%0Acopies of the Software, and to permit persons to whom the Software is%0D%0Afurnished to do so, subject to the following conditions:%0D%0A%0D%0AThe above copyright notice and this permission notice shall be included in all%0D%0Acopies or substantial portions of the Software.%0D%0A%0D%0ATHE SOFTWARE IS PROVIDED %22AS IS%22, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR%0D%0AIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,%0D%0AFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE%0D%0AAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER%0D%0ALIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,%0D%0AOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE%0D%0ASOFTWARE.%0D%0A*/%0D%0A
 %0D%0Apublic

Update FibonacciSolver.java