title: Compilation Error: 'void' type not allowed here
body: <p>How can I resolve this type of a compilation error.</p>
  
  <p>The bold part is the place where it shows a compilation error.</p>
  
  <pre><code>DegreeDays.java:71: 'void' type not allowed here
          System.out.println(***"\t"***(error here) +
              list(test[counter]) + "\t\t\t" + 
              average_temp(test[counter], test[counter - 1]));
  
  DegreeDays.java:71: 'void' type not allowed here
          System.out.println("\t" + list(test[counter]) ***+
              ***(error here) "\t\t\t" + 
              average_temp(test[counter], test[counter - 1]));
  </code></pre>