Skip to content

Get cubeArray

Akshath Raghav edited this page Jun 28, 2021 · 1 revision

The cubeArray is handled as the cube[][][][] in the Cube class.

Remember that any changes to the array will reflect on its Cubot object

getCube()

--> Returns a String[][][][] object containing all the cube pieces. Be Careful! Any changes to the array will reflect on the cube.

String[][][][] cubearray = cube1.getCube() ; 

getSolvedCube()

--> Returns a String[][][][] object containing all the cube pieces of the solved cube.

String[][][][] solvedcubearray = cube1.getSolvedCube() ;