title: How to split an integer in Groovy?
body: <p>I want to split the given integer in groovy. Say for example, </p>
  
  <pre><code> def a = 198
      println(a.split())
  </code></pre>
  
  <p>However i get an error, because i could not apply the <code>split</code> method to an integer, so is there any way or method to do this. What i want is this:</p>
  
  <pre><code>   def a = 198
     // what to do here?
     // i want to get an output like 1,9,8
     // any ideas?
  </code></pre>