title: Method Stubs in Java
body: <p>This is what I have to do:</p>
  
  <p>Define stubs for the methods called by the below main(). Each stub should print "FIXME: Finish methodName()" followed by a newline, and should return -1. </p>
  
  <p>FIXME: Finish getUserNum()</p>
  
  <p>FIXME: Finish getUserNum()</p>
  
  <p>FIXME: Finish computeAvg()</p>
  
  <p>Avg: -1</p>
  
  <p>Here is the code that I have written so far:</p>
  
  <pre><code>import java.util.Scanner;
  
  public class MthdStubsStatistics {
  
  public static int methodName (int userNum1, int userNum2, int avgResult) {
    System.out.println("FIXME: Finish getUserNum( )");
    System.out.println("FIXME: Finish getUserNum( )");
    System.out.println("FIXME: Finish computeAvg( )");
    System.out.println("Avg: -1");
  
  return 0;
  
  }
  
  public static void main() {
    int userNum1 = 0;
    int userNum2 = 0;
    int avgResult = 0;
  
    userNum1 = getUserNum();
    userNum2 = getUserNum();
  
    avgResult = computeAvg(userNum1, userNum2);
  
    System.out.println("Avg: " + avgResult);
  
    return;
  }
  }
  </code></pre>
  
  <p>I can only edit the public static int methodName section. I thought I knew how method stubs operated, but I guess not. I swear that I am doing something wrong that is simple, but if someone could please help me out, that would be great.</p>