Java examples for java.lang:Math Geometry
is Pythagorean
//package com.java2s; public class Main { public static boolean isPythagorean(int a, int b, int c) { return ((a * a) + (b * b)) == (c * c); }//from ww w . j a v a2 s. c o m }