title: incompatible types: void cannot be converted to int
body: <p>I'm extremely new when to comes to Java and programming in general. I am trying to create a simple program where you guess my age and if you are right it will say "correct" and if you are wrong it will say "wrong".</p>
  
  <p>This is my code: </p>
  
  <pre><code>import java.util.InputMismatchException;
  import java.util.Scanner; // This will import just the Scanner class.
  
  public class GuessAge {
      public static int main(int[] args) {
         System.out.println("\nWhat is David's Age?");
         Scanner userInputScanner = new Scanner(System.in);
         int age = userInputScanner.nextLine();
  
  
  
          int validInput = 20;
          if (validInput == 20) {
              return System.out.println("Correct!!");
          }
          else {
              return System.out.println("Wrong....");
          }
      }
  }
  </code></pre>
  
  <p>I get the error "incompatible types: void cannot be converted to int" but I have no void class in the code? I know my code is probably awful but if you guys could point me in the right direction that would be great. Thanks. </p>