title: How to create a LinkedList of objects from scratch(not using java's API)
body: <p>I have to create a LinkedList of objects from scratch and I simply can't get my head around it, I'm not sure if i need a class for the linkedlist and the node or if i can do it in the object class itself. I'm also doing this on JavaFx using scene builder so i need to add objects through user input from the controller class. </p>
  
  <p>I've tried separating the node and linkedlist into there own classes but that just confused me further. </p>
  
  <p>This is my current Show object fields and constructor </p>
  
  <pre><code>public class Show {
  
          private String title;
          private int runningTime;
          private String startDate, endDate;
          private int ticketPrice;
          public Node head, next;
  
  
  
          public Show (String title, int runningTime, String startDate, String 
                       endDate, int ticketPrice) {
              this.title = title;
              this.runningTime = runningTime;
              this.startDate = startDate;
              this.endDate = endDate;
              this.ticketPrice = ticketPrice;
              next=null;
          }
  
  </code></pre>
  
  <p>When i try to call the head which i've made public in my Show class it gives an error "Non-static field 'head' cannot be referenced from a static context"</p>
  
  <p>I'm looking for the correct structure for object specific linkedlists.</p>