title: Drawing a picture of Nodes and where they're pointing to
body: <p>I'm supposed to explain visually how four Nodes appear after typing the following code:</p>
  
  <pre><code>public class Node
  {
  
      //These two lines are provided
      public Object Data = null;
      public Node Next = null;
  
      public static void main(String[] args)
      {
          Node a = new Node();
          Node b = new Node();
          Node c = new Node();
          Node d = new Node();
  
          //These four lines must be used
          b = a.Next;
          //c = b.Next;                //Gives NullPointer error
          //b.Data = c.Next.Data;      //Gives NullPointer error
          c.Next = a;
      }
  }
  </code></pre>
  
  <p>From what I've worked on so far, it seems that:</p>
  
  <ul>
  <li>A points to a Node (unchanged)</li>
  <li>B turns into a null object</li>
  <li>C's Node points to A</li>
  <li>D points to a Node (unchanged)</li>
  </ul>
  
  <p>(<a href="https://i.stack.imgur.com/D9Rco.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D9Rco.jpg" alt="This is the image"></a> This is the image that I'm referring to from my debugger)</p>
  
  <p>Is it normal for the two lines above to give NullPointer errors? Also are my guesses kinda close to the picture? Thanks for helping</p>