title: Java if - else return error "String cannot be converted to int"
body: <p>I think I might be completely wrecking the Syntax of a method I am trying to create. The method is part of a larger application that gets the user information to make an invoice. </p>
  
  <p>I get the following error for whatever reason:</p>
  
  <p><code>java:43: error: incompatible types: String cannot be converted to int</code></p>
  
  <p>Any help is deeply appreciated!</p>
  
  <p>Here is the latest version of code I have tried:</p>
  
  <pre><code>public static int inputmethod(String question){
      Scanner in=new Scanner(System.in);
      System.out.println ("Input " + question + ":");
      int s=in.nextInt();
      String x = "Wrong, value cannot be 0, please try again!";
      if (s==0) 
          return x;
      else 
          return s;
  }
  </code></pre>