Attempt at solving the fizzbuzz problem in java