title: Creating References to Objects
body: <p>I have this Object here:</p>
  
  <pre><code>public class ItemInfo {
  
      String productName;
      String rfidTagNumber;
      String originalLocal;
      String currentLocal;
      double productPrice;
  
      public ItemInfo(String name, String tag, String origLoc, String curLoc, double price) {
          productName = name;
          rfidTagNumber = tag;
          originalLocal = origLoc;
          currentLocal = curLoc;
          productPrice = price;
      }
  </code></pre>
  
  <p>I need to create and have a reference to an <code>ItemInfo</code> Object in here:</p>
  
  <pre><code>public class ItemInfoNode {
  
      ItemInfoNode next;
      ItemInfoNode prev;
  
      public ItemInfoNode(){
  
      }
  
      public void setInfo(ItemInfo info) {
  
      }
  
      public ItemInfo getInfo(){
          return null;    
      }
  
      public void setNext(ItemInfoNode node) {
  
      }
  
      public void setPrev(ItemInfoNode node) {
  
      }
  
      public ItemInfoNode getNext() {
          return null;
      }
  
      public ItemInfoNode getPrev() {
          return null;
      }
  }
  </code></pre>
  
  <p>I know how to make new objects but I am not quite sure that is correct so I omitted the line, how do I create just a reference?</p>
  
  <p>EDIT: Just another small sidebar, I have two ItemInfoNode objects next and prev as seen above, do I just leave the constructor blank? Is that okay? I pasted the rest of the class to show functions, if that'll help an answer in anyway. Thanks again!</p>