I got a question about this program, it says: The FizzBuzz Challenge: Display numbers from 1 to x, replacing the word \'fizz\' for multiples of 3, \'buzz\' for multiples
Here's the pseudocode:
for i in 1 to 100 if(i % 5 == 0) AND (i % 3 == 0) print 'fizzbuzz' else if(i % 3 == 0) print 'fizz' else if(i % 5 == 0) print 'buzz' else print i
I'll leave it as an exercise for you to convert it into Java, as that might help with the understanding as to how this works.