Calcular potencia en java

Iterativo y recursivo

public class potencia {

public static void main(String[] args) {
// TODO Auto-generated method stub
java.util.Scanner lee = new java.util.Scanner(System.in);
int b = lee.nextInt();
int e=0;
while(e<=0){
e= lee.nextInt();
}
int solucion =1;
for (int i = 0; i < e; i++) {
solucion*=b;
}
System.out.println(solucion);
int sol = pot(b,e);
System.out.println(sol);
lee.close();
}
public static int pot (int b, int e){
if (e==0){
return 1;
}
else{
return b*(pot(b, e-1));
}
}
public static void poten (int b, int e){
if (e==0){
}
else{
System.out.println( b*(pot(b, e-1)));
}
}
}