int m = 15; // Example value for m
if (m % 3 == 0 && m % 5 == 0) {
System.out.println("m is a multiple of 3 and 5");
} else {
System.out.println("m is not a multiple of 3 and 5");
}
In this code, we're using the modulo operator (%) to check whether m is a multiple of 3 and 5. If m is divisible by both 3 and 5 (i.e., the remainder when m is divided by 3 and 5 is 0), then we print the message "m is a multiple of 3 and 5". Otherwise, we print the message "m is not a multiple of 3 and 5". Note that the value of m is arbitrary and can be changed to any other value as needed.