How can I get a long number bigger than Long.MAX_VALUE?
I want this method to return true:
boolean isBiggerThanMaxLong(long val) {
r
If triangle.lborderA is indeed a long then the test in the original code is trivially true, and there is no way to test it. It is also useless.
However, if triangle.lborderA is a double, the comparison is useful and can be tested. isBiggerThanMaxLong(1e300) does return true.
public static boolean isBiggerThanMaxLong(double in){
return in > Long.MAX_VALUE;
}