Java立方体 Java正则表达式 编译并执行Java Online Java立方体 import java.util.Scanner; public class FindingCube { public static void main(String args[]){ int n = 5; System.out.println("Enter a number ::"); Scanner sc = new Scanner(System.in); int num = sc.nextInt(); System.out.println("Cube of the given number is "+(num*num*num)); } } Java正则表达式 编译并执行Java Online