title: Reading multiple bits using Scanner
body: <p>I have a simple code that reads values entered by a user:</p>
  
  <pre><code>Scanner scanner = new Scanner(System.in);
  System.out.printf("Enter with values: ");
  
  String symbol = scanner.next();
  System.out.println(symbol);
  // But now I only have a single value
  </code></pre>
  
  <p>However I would like to get all the entered values, not just some. The input could be</p>
  
  <pre><code>01
  // or
  01011
  // or
  000000000000000000000001110
  </code></pre>
  
  <p>The user can enter whatever value he wants. And I want to have an array which contains each of the individual entered bits.</p>
  
  <p>Example array:</p>
  
  <pre><code>String[] entries;
  entries [0] = "0";
  entries [1] = "1";
  ...
  </code></pre>
  
  <p>Any ideas how to do this?</p>