title: Incompatible Types error, Java
body: <p>I'm having some trouble figuring out why I keep getting "incompatible types" error, so here is my sample code (Note: This is for an introductory Java coding course, and the teacher has a specific format we need to follow.) The primary objective is to use seperate methods to get the nouns, adjectives, and verbs for the Madlib, and return those to the main method for the full story. </p>
  
  <pre><code>public class MadLib{
  
  //First, I will want to set my named constants
  
  public static final Scanner keyboard = new Scanner(System.in);
  
  public static void main(String [] args){
  
      System.out.println("Hello there! Welcome to my MadLib!");
      System.out.println("Before we start, we need some words!");
      String n1   = getNoun();
      String n2   = getNoun();
      String a1   = getAdj();
      String a2   = getAdj();
      String v1   = getVerb();
      String ving = getVing();
  
  }
  
  private static void getNoun(){
  
      System.out.println("Please enter a noun!");
      noun = keyboard.nextLine();
      return noun;
  </code></pre>
  
  <p>Thanks for checking it out! I hope someone can help me. I think the problem is that I'm not sure how to return a string from the Scanner utility. Please, any help will do. Thank you!</p>