title: Java - Turn a string of letters into equivalent words
body: <p>I am new to Java and would be grateful for any help anyone can give me</p>
  
  <p>I need to write a program that asks the user for a string of 5 characters, for example asdfg, and converts these into words, such as 'apple spinach dog fish goat'. (These are the letters the user will input)</p>
  
  <p>I have been trying to input these into an array, and change the elements from that but I am not entirely sure how.</p>
  
  <p>This is the code I have so far</p>
  
  <pre><code>import java.util.Scanner;
  import static java.lang.System.out;
  
  
  public class wordsArray {
      public static void main(String[] args) {
          Scanner scan = new Scanner(System.in);
  
          System.out.println("Please enter the details of your order");
          String myList = scan.nextLine();
      }
  
          myList[0] = "apple";
          myList[1] = "spinach";
          myList[2] = "dog";
          myList[3] = "fish";
          myList[4] = "goat";
  
          //Print all the array elements
          for (int i = 0; i &lt; myList.length; i++) {
              System.out.println(myList[i] + " ");
         }
  
  
      }
  </code></pre>
  
  <p>Thanks for any help anyone can give!</p>