import java.util.Scanner;
public class Test
{
public static void main(String[] args)
{
Scanner scanner = new Scanner(System.in);
System.out.println("输入x, n 用逗号分开: ");
String line = null;
while (scanner.hasNextLine()) {
line = scanner.nextLine();
String[] strs = line.split("\\s*,\\s*");
int x = Integer.parseInt(strs[0].trim());
int n = Integer.parseInt(strs[1].trim());
System.out.println("结果是:" + cal_pow(x, n));
System.out.println("see you lala ");
scanner.close();
break;
}
}
private static double cal_pow (int x, int n)
{
return Math.pow (x, n);
}
}