title: c# How to print the chars of strings in arraylist
body: <p>This program prints all possibilities of a string input, for example, if input is abc', the output should be the combinations, this works but when im creating the arraylist it's printing out numbers instead of the string combinations, code:</p>
  
  <pre><code>string input = Console.ReadLine();
  
  int sl = input.Length;
  ArrayList arr = new ArrayList();
  
  for (int three = 0; three &lt; sl; three++) {
      for (int two = 0; two &lt; sl; two++) {
          for (int one = 0; one &lt; sl; one++) {
              char onef = input[one];
              char twof = input[two];
              char threef = input[three];
  
  
              arr.Add(threef + twof + onef);
  
              Console.Write(threef);
              Console.Write(twof);
              Console.WriteLine(onef);
          }
      }
  }
  
  Console.WriteLine("The elements of the ArrayList are:");
  foreach(object obj in arr) {
      Console.WriteLine(obj);
  }
  </code></pre>
  
  <p>the output of the arraylist is numbers and not the string chars, help!</p>