java check if number is divisible by another number

www.lautt‮‬uri.com
java check if number is divisible by another number
/**
 * @author lautturi.com
 * Java example: determine whether a number is divisible by another number
 */

public class Lautturi {

	public static void main(String[] args) {

		int num1 = 30;
		int num2 = 6;
		boolean isDivisible = num1 % num2 == 0;
		System.out.println(isDivisible);

	}
}

output:

true
Created Time:2017-09-22 23:49:13  Author:lautturi