class testMath5{ public static void main(String args[]){ double a = 9d; double b = 4d; System.out.println("「" + a + "」の平方根は"); System.out.println("「" + Math.sqrt(a) + "」です。"); System.out.println("「" + b + "」の立方根は"); System.out.println("「" + Math.cbrt(b) + "」です。"); } }