title: How do I "peek" the next element on a Java Scanner?
body: <p>That is, how do I get the next element of the iterator without removing it? As I may or may not want to remove it depending on its content. I have a file scanner where I iterate over XML tags using the Scanner next() method.</p>
  
  <p>Thanks in advance.</p>