(solution) please write a simple java application that can output the square

(solution) please write a simple java application that can output the square

please write a simple java application that can output the square and cube of a number(1-10)

display should look like this: number   square   cube
import java.util.ArrayList; import java.util.List; public class SquareCube { public static void main(String args) { System.out.println("number square cube"); for(int i=1;i<=10;i++){…