I received the error "possible loss of precision" on the last line of my code. Is it not possible to return a double?

My instructions were to create a program, called power, that took a double (x) and raised it to an integer (n) power.

package power;
/**
*
* @author Josh
*/
public class Main {
public static void main (String[] args) {
power (4.5, 5);
// invoke power
}
public static int power (double x, int n)
{
if (x == 0) {
return 0;
// if x = 0, then return 0 and terminate program
} else {
int recurse = power (x, n-1);
double result = x * recurse;
// recursive x^n
return result;
}
}
}

*Revised to accommodate for other errors.
I'm trying to return a double and the method result is a double, so why do I receive an error?

package power;
/**
*
* @author Josh
*/
public class Main {
public static void main (String[] args) {
power (4.5, 5);
// invoke power
}
public static int power (double x, int n)
{
if (n != 0) {
// if n does not equal 0, then initiate recursion
int recurse = power (x, n-1);
double result = x * recurse;
// recursive x^n
return result;
} else{
// If n equals 1, than the result is 1 and the program terminates
return 1;
}
}
}

Oh wow, I'm an idiot. I had my method defined as an int. DUH!!

package power;
/**
*
* @author Josh
*/
public class Main {
public static void main (String[] args) {
power (4.5, 5);
// invoke power
}
public static double power (double x, int n)
{
if (n != 0) {
// if n does not equal 0, then initiate recursion
double recurse = power (x, n-1);
double result = x * recurse;
// recursive x^n
return result;
} else{
// If n equals 1, than the result is 1 and the program terminates
return 1;
}
}
}

import java.util.Scanner;
public class LuckySevens {
private int diceLength;
private int rolls;
private int sides;
private int numRolls = 0;
public static void main (String [] args) {
Scanner reader ...

I am working creating a fully encapsulated, homogeneous singly linked data structure. The Listing class and SinglyLinkedList class that are part of the whole application compile fine, but the problem ...