title: Java - Simplest Radical Form
body: <p>I was trying to build a program that puts a radical into simplest radical form. I, ovbiously, had no luck.</p>
  
  <p>I am looking for a method that takes in a <code>String</code> and returns a <code>String</code>.</p>
  
  <p>An input <code>String</code>: <code>sqrt[160]</code>. I have already made my method take the numerical value out (160).</p>
  
  <p>Now, I just need something to break 160 up and return a <code>String</code> like: <code>"4*sqrt[10]"</code></p>
  
  <p>Thanks in advance!</p>
  
  <p>NOTE:</p>
  
  <ol>
  <li>The above is JUST AN EXAMPLE</li>
  </ol>