title: How to check in Java if a number is a cube
body: <p>In Java how do you check if a number is a cube ?</p>
  
  <p>The number can be between the range <code>−2,147,483,648..2,147,483,647</code></p>
  
  <p>Say for instance given the following numbers we can see that they are cubes</p>
  
  <pre><code>8 (2^3) - True
  27 (3^3) - True
  64 (4^3) - True
  </code></pre>