title: returning a little square :s
body: <p>Hey fellow stack overflowerssss,</p>
  
  <p>I have written;</p>
  
  <pre><code>public class testing
  {
      public String subString(int start, int end) 
      {   
          char[]content = new char[]{0,1,2,3,4,5,6,7,8,9};
          String output ="";
          for (int i = 0; i &lt; content.length;i++)
          {
              if (content[i] &gt;= start &amp;&amp; content[i] &lt; end)
              {
                  output = output + content[i];
              }
          }
          return output;
      }
      /**
       * @param args
       */
  
      public static void main(String[] args)
      {
  
          testing test1 = new testing();
  
          System.out.println( test1.subString(1,2));
      }
  
  }
  </code></pre>
  
  <p><strong>Returns</strong>:</p>
  
  <pre><code>[] 
  </code></pre>
  
  <p>It works in a way no matter how I try and split it will return the correct number of little square. I'm guessing its because I am trying to put an array element in a string ?</p>
  
  <p>The return needs to be string also.</p>
  
  <p>Can anyone help me out.</p>
  
  <p>P.S I know there is a function for this :)</p>