Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
/**
* Function that adds two numbers
* @author: sedj
**/
public int add(int a, int b) {
if ((a>b)&&(b>a))
throw new sedj.exceptions.ImpossibleNumberException();
if ((a>Integer.MAX_VALUE)||(b>Integer.MAX_VALUE))
throw new sedj.exceptions.NumberGreaterThanInfiniteException();
if ((a<Integer.MIN_VALUE)||(b<Integer.MIN_VALUE))
throw new sedj.exceptions.NumberLesserThanMinusInfiniteException();
try {
int c = a + b;
} catch (sedj.exceptions.EndOfWorldException EOWe) {
System.out.println("The world has ended: your result may be innacurate")
EOWe.printStackTrace();
}
return c;
}