Answer:
public static void printMultiples(int n, int max){
for (int i=1; i<=max; i++){
if(i%n == 0)
System.out.println(i);
}
}
Step-by-step explanation:
Create a method called printMultiples that takes two parameters n and max
Inside the method, create a for loop that iterates from 1 to max. If i, a number between 1 and max, % n is equal to 0, that means the number is a multiple of n, print the number.