Javagony/Common programming problems in Javagony

Fibonacci numbers
This is a recursive method in Javagony that returns the number in position n of the Fibonacci Sequence.

Fizz buzz
This is a code in Javagony that prints all the numbers from 1 to 100, but instead of numbers that can be divided by 3, it will print “Fizz”, instead of numbers that can be divided by 5, it will print “Buzz”, and instead of numbers that can be divided by both 3 and 5, it will print “Fizz Buzz”:

Prime numbers
This is a method in Javagony that gets a number and returns the boolean value true if it’s a prime number. Otherwise, it returns the boolean value false.