Skip to content

Printing Output

Akshath Raghav edited this page Jun 28, 2021 · 3 revisions

toString()/System.out.println(cube)

--> Prints out the cube so that its easy to understand

System.out.println(cube3x3) ; 
System.out.println(cube2x2) ; 

example

example


indexedString()

--> Prints out the cube with indexes and colors on each face of the cube pieces ( along with indexes )

System.out.println(cube3x3.indexedString()) ; 
System.out.println(cube2x2.indexedString()) ; 

example

example

Clone this wiki locally