title: print arraylist without brackets
body: <p>I'm trying to get my output to be displayed without the brackets. I feel like it's a simple thing but just can't figure it out. </p>
  
  <p>The output looks like this </p>
  
  <pre><code>22 ([1, 2, 11]) 
  33 ([1, 3, 11]) 
  44 ([1, 2, 4, 11, 22]) 
  55 ([1, 5, 11]) 
  66 ([1, 2, 3, 6, 11, 22, 33]) 
  77 ([1, 7, 11]) 
  </code></pre>
  
  <p>But I want it to have no brackets displayed so it looks like this </p>
  
  <pre><code>22 (1, 2, 11) 
  33 (1, 3, 11) 
  44 (1, 2, 4, 11, 22) 
  55 (1, 5, 11) 
  66 (1, 2, 3, 6, 11, 22, 33) 
  77 (1, 7, 11) 
  </code></pre>
  
  <p>Here's a piece of my code</p>
  
  <pre><code>import java.util.ArrayList;
  
  public class Palindrome {
      public static void main(String[] args) {
          int e = 0;
          // palindromic composite number
          int drome = 0;
          // starting int range
          int start = 10;
          // ending int range
          int end = 10000;
          for (int i = start; i &lt;= end; i += 1) {
              if (isPalindromic(i)) {
                  drome = i;
                  if (!isPrime(i))
                      System.out.println(drome + " (" + getDivisors(drome) + ")");
              }
          }
      }
  
      // gets gets the divsors and adds them to arraylist if divsor is a
      // palindrome
      public static ArrayList getDivisors(int number) {
          ArrayList numbersDivisor = new ArrayList();
          int i = 0;
          for (i = 1; i &lt; number; i++) {
              if (number % i == 0 &amp;&amp; i != number &amp;&amp; isPalindromic(i)) {
                  numbersDivisor.add(i);
              }
          }
          return numbersDivisor;
      }
  </code></pre>