title: The method println(boolean) in the type PrintStream is not applicable for the arguments (void)
body: <p>I am getting an error when I try executing the following code:</p>
  
  <pre><code>package Abc;
  
  public class Class3 {
  
      public void another() {
          System.out.println("Hello World");
      }
  
      public static void main(String[] args) {
          Class3 obj1 = new Class3();
          System.out.println(obj1.another());
      }
  
  }
  </code></pre>
  
  <p>The error is:</p>
  
  <pre class="lang-none prettyprint-override"><code>The method println(boolean) in the type PrintStream is not applicable for the arguments (void)
  </code></pre>