title: Converting ArrayList to Array in java
body: <p>I have an ArrayList with values like "abcd#xyz" and "mnop#qrs". I want to convert it into an Array and then split it with # as delimiter and have abcd,mnop in an array and xyz,qrs in another array. I tried the following code:</p>
  
  <pre><code>String dsf[] = new String[al.size()];              
  for(int i =0;i&lt;al.size();i++){
    dsf[i] = al.get(i);
  }
  </code></pre>
  
  <p>But it failed saying "Ljava.lang.String;@57ba57ba"</p>