Write a Java program that prints the numbers from 1 to 50.
For multiples of 3, print "Fizz" instead of the number.
For the multiples of 5, print "Buzz" instead of the number.
For numbers which are multiples of both 3 and 5, print "FizzBuzz".
For all other numbers, print the number.