Greatest Common Divisor (GCD) of positive integer numbers : Math Functions « Development « Java Tutorial

http://www.java2s.com/Tutorial/Java/0120__Development/GreatestCommonDivisorGCDofpositiveintegernumbers.htm
最大公約数(GCD)を求める関数。2つの引数の関数はたくさん見つかるのだが、2を超える個数を対象としたものがなかなかない。