title: Writing a static value returning method
body: <p>My assignment is: Write a static value returning method called max that has two int parameters, num1 and num2, and returns the larger of the two integers.</p>
  
  <p>so far I've written the main part out just need help with the right method</p>
  
  <pre><code>import java.io.*;
  import java.util.Scanner;
  
  public class MaxLab {
  
      public static void main(String[] args) throws IOException {
          String inputLine;
          int number1;
          int number2;
          Scanner in;
          in = new Scanner(System.in);
          System.out.print("Enter first number:");
          number1 = in.nextInt();
          System.out.print("Enter second number:");
          number2 = in.nextInt();
          System.out.println("The largest number is " + max(number1, number2));
      }
   }
  </code></pre>