title: Java lesson: public void displayMessage() Doesn't working
body: <p>I have a Java book and im trying to learn obviously Java Programming.</p>
  
  <p>I have a lesson that tells me simply to put this Code on Eclipse.</p>
  
  <p>I copied from the Book and i put it on Eclipse program that i test and learn there. When i run it, it doesn't says any error. But at the moment that i run it, it shows me this error:</p>
  
  <p><a href="https://i.stack.imgur.com/Zw2Va.jpg" rel="nofollow noreferrer">Code on Eclipse</a></p>
  
  <p><a href="https://i.stack.imgur.com/tQZcv.jpg" rel="nofollow noreferrer">Code on the Book</a></p>
  
  <p>Does anyone knows what happens here? Is the book wrong or what?</p>
  
  <p>Thanks.</p>