title: Java Averaging Program
body: <p>Write a class called Average that can be used to calculate average of several integers. It should contain the following methods:</p>
  
  <p> A method that accepts two integer parameters and returns their average.
   A method that accepts three integer parameters and returns their average.
   A method that accepts two integer parameters that represent a range. Issue an error message and return zero if the second parameter is less than the first one. Otherwise, the method should return the average of the integers in that range (inclusive).</p>
  
  <p>I am totally new to Java and programming, this has me completely lost! Here's what I've tried.</p>
  
  <p>import java.util.Scanner;</p>
  
  <pre><code>public class Average {
  
      public static void main(String[] args) {
  
      double numb1, numb2, numb3;
      System.out.println("Enter two numbers you'd like to be averaged.");
      Scanner keyboard = new Scanner(System.in);
      numb1 = keyboard.nextInt();
      numb2 = keyboard.nextInt();
  
      }
  
          public double average (int num1, int num2) {
  
              return (num1 + num2) / 2.0; 
      } 
  
          public double average (int num1, int num2, int num3) 
          { 
           return (num1 + num2 + num3) / 3.0; 
          } 
  </code></pre>
  
  <p>}</p>
  
  <p>The program doesn't go past getting the values from the user. Please help!</p>