Here you can find the source of maxCommonDivisorCore(int num1, int num2)
private static int maxCommonDivisorCore(int num1, int num2)
//package com.java2s; //License from project: Open Source License public class Main { private static int maxCommonDivisorCore(int num1, int num2) { if (num1 % num2 == 0) { return num2; }//from w ww . ja v a 2s.co m return maxCommonDivisorCore(num2, num1 % num2); } }