{"id":133,"date":"2010-12-03T10:33:27","date_gmt":"2010-12-02T23:33:27","guid":{"rendered":"https:\/\/learn-java-by-example.com\/?p=133"},"modified":"2011-07-22T15:25:36","modified_gmt":"2011-07-22T05:25:36","slug":"fibonnaci-number","status":"publish","type":"post","link":"https:\/\/learn-java-by-example.com\/java\/fibonnaci-number\/","title":{"rendered":"Fibonnaci Number"},"content":{"rendered":"
\n

”<\/span> By definition, the first two Fibonacci numbers are 0 and 1, and each subsequent number is the sum of the previous two. “<\/span><\/p>\n

Fibonacci, Wikipedia<\/a><\/cite><\/p><\/blockquote>\n

Generating Fibonacci numbers is an assignment often given to Java students when they are being introduced to recursion.<\/p>\n

Recursion is programming technique that involves a method calling itself to solve a problem. When implementing a recursive solution we look for two things:<\/p>\n