The method prints the numbers from 1 to 1000, with numbers divisible by 3 printing "FIZZ", numbers divisible by 5 printing "BUZZ", and numbers divisible by both 3 and 5 printing "FIZZBUZZ".
Complete the below method The method should print the numbe.pdf
1. Complete the below method. The method should print the numbers from 1 to 1000, inclusive, one
line per number, with the following exceptions: (1) If a number is a multiple of 3 but not 5, print
FIZZ. (2) If the number is a multiple of 5 but not 3, print BUZZ. (3) If the number is a multiple of 3
and 5, print FIZZBUZZ. public static void fizzBuzz() { } (MUST BE IN JAVA)