title: separate string inputs
body: <p>I am able to separate the characters in string input, but my problem is this:</p>
  
  <p><code>Enter an integer: 123</code></p>
  
  <p>Output is:</p>
  
  <p><code>Individual digits: 1 Individual digits: 2 Individual digits: 3</code></p>
  
  <p>It also copies the "individual digits" which is not intended.. here's my code</p>
  
  <pre><code>public class gradedExer1A {
  
      /**
       * @param args
       */
      public static void main(String[] args) {
          // TODO Auto-generated method stub
  
          Scanner sc = new Scanner(System.in);
  
          System.out.print("Enter an integer: ");
          String input = sc.nextLine();
          int len = input.length();
  
  
          for(int i = 0; i &lt; len ; i++) {
  
              char in = input.charAt(i);
  
              System.out.print("Individual digits: " + in + " ");
  
          }
  
  
      }
  
  }
  </code></pre>