编译并执行Java Online Java立方体 用于连接两个数组的Java程序 编译并执行Java Online import java.util.Scanner; public class CubeNum { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int num; System.out.print("Enter a number: "); num = sc.nextInt(); System.out.println("Cube of "+ num + " is: "+ Math.pow(num, 3)); } } Java立方体 用于连接两个数组的Java程序