Back to project page androidtestdebug.
The source code is released under:
MIT License
If you think the Android project androidtestdebug listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
public class Sample2 { public int add(int left, int right) { if ( Integer.MAX_VALUE - left < right || Integer.MAX_VALUE - right < left ) { throw new ArithmeticException(String.format("%d?%d???????????", left, right)); } return left + right; } }