How To Cube Something In Java