title: Stacks and Queues exam follow through
body: <p>I'm going through a sample exam paper I was given in order to prepare for the real one. I'm pretty sure I'm answering the question wrong anyway, if you guys could indicate me where I'm going wrong that'd be really cool. But try and be descriptive so I can manipulate different values to actually get an understanding!</p>
  
  <p>Sorry about the <a href="http://vvcap.net/db/8P8I4pXIxeZXm74xbcdi.htp" rel="nofollow">link</a> unsure how to convert it so it displays as an Image here if someone could do that for me I'd appreciate it.</p>
  
  <p>Anyway the first value is "1 2"</p>
  
  <p>I'll go through my attempt:</p>
  
  <ol>
  <li>The first.push line is adding it onto the Stack, as well as converting it from a String to an int.</li>
  <li>Since it's not empty we follow the try for the Stack named first</li>
  <li>This is where I think I may be going wrong - value = first.pop(); 
  Since a stack is last in first out, I'm assuming the result of value will be 2 
  since "1 2" 2 comes in last so it's the most recent...</li>
  <li>2%2 == 0 so we now add value to the list which is 2 but since it's second.offer(value/2); 
  this would make it 0, therefore it has no value ? making it null?</li>
  <li>we skip the catch since everything has ran smoothly ...</li>
  <li>See here I'm unsure because I guess second is empty since we added 0 ? </li>
  </ol>
  
  <p>I'm pretty confused and I'm sure I've went wrong somewhere. I'd really appreciate it if you guys could help me follow through it, as it'll almost definitely show up on my exam.</p>