title: Iterating through LinkedList in Java
body: <p>Let me first apologize if this is ridiculously elementary.  This is my first time programming.  </p>
  
  <p>The issue here is that I need to print out a LinkedList.  Could someone guide me as to what I'm doing wrong?  Here's what I have:</p>
  
  <pre><code>public class Queue {
  
  private LinkedList list;
  
  public Queue() { 
      list = new LinkedList(); 
  }
  }
  
  public class BankQueue {
  
  static Queue q = new Queue();
  
  public static void main(String[] args) {
  
      //Insert a menu with a list of possible choices
  
  public static void printQueue(Queue q) {
      for (String s : q) {
          System.out.println(q);
      }
  }
  </code></pre>
  
  <p>I keep getting errors saying that say that I can only iterate over an array or an instance of java.lang.Iterable.  Thanks for the help.  It's sincerely appreciated.</p>