You simply call the methods from within the other method.
private void example(){
System.out.println("facto - " + facto(1));
System.out.println("power - " + power(1,1));
}
That example will simply output the return values. If you want to set the return value to a variable, do this.
private void example(){
double ex1 = facto(1);
double ex2 = power(1,1);
//Now ex1 holds the return value of facto(), and ex2 holds the return value of power().
}
Also, you should instantiate the result int within the facto() method or else it won't work. If you have it instantiated elsewhere, it will be an issue relating to the scope of the variable. I am not sure how familiar you are with this, so as a side note: The result variable will always be 0 when you first call the method due to the local scope.
private double facto(int n) {
int result = 0;
for (int i = 1; i <= n; i++) {
result = result * i;
}
return result;
}