title: Convert string user input to array
body: <p>Ok so I'm trying to create a programmed where the user is asked to enter a word, this word is then stored as a variable, and then its displayed as an array.</p>
  
  <p>This is what I have so far:</p>
  
  <pre><code>package coffeearray;
  
      import java.util.Arrays;
      import java.util.Scanner;
      import java.lang.String;
      import java.util.ArrayList;
  
      public class Main {
  
  
      public static void main(String[] args) {
  
          String drink;
          String  coffee;
  
  
          int [] a =new int[6];
  
          Scanner in = new Scanner(System.in);
          System.out.println("Please input the word coffee");
          drink = in.next();
  </code></pre>
  
  <p>So basically I need some code so that the word stored is then displayed as variable. For example "Coffee"  would then be displayed but each letter on its own line. </p>
  
  <p>I've searched all over and can't seem to find out how to do this. Thanks in advance. </p>