Answer:
public class Main
{
public static void main(String[] args) {
Main m=new Main();
System.out.println(m.mymath(true,5,2)); // calling the function mymath
}
public int mymath(boolean a,int b,int c) // mymath function definition
{
if(a==true)
{
int d=b+c;
return d;
}
else{int e=b-c;
return e;
}
}
}