title: getMax Method to get the bigger number
body: <p>I'm a noob to Java &amp; I got stuck on a problem.</p>
  
  <p>So the assignment is like this</p>
  
  <blockquote>
    <p>There is one method required:  getMax, which takes two integer variables as input, returns >the bigger one of the two. Your main method must look like the following (except the comment.</p>
  </blockquote>
  
  <pre><code>main( String[] args)
  {   
       int num1, num2;
       num1 = Integer.parseInt(args[0]);
       num2 = Integer.parseInt(args[1]);
       System.out.println(“the bigger value of the two is : “ + getMax(num1, num2));
  }
  </code></pre>
  
  <p>You program may work like:</p>
  
  <p>java Assign5 23 67</p>
  
  <p>the bigger value of the two is 67</p>
  
  <p>After a little struggle here is the little program I wrote. </p>
  
  <pre><code>import java.util.Scanner;
  
  //use getMax to takes two numbers and returns bigger of the two
  
  public class assignment5 {
          private static void getMax(int a, int b ){
              Scanner kevin = new Scanner(System.in);
  
          System.out.println("Enter First Number:");
          a = kevin.nextInt();
          System.out.println("Enter Second Number:");
          b = kevin.nextInt();
  
      getMax(a, b); if (a &gt; b) {
          System.out.println(a + " is bigger"); }
      else {
          System.out.println(b + " is bigger");
          }
  
      }
  
      }
  </code></pre>
  
  <p>but this is somehow very different from the actual assignment. I feel a bit stupid. Can someone help me with this?</p>