title: Can someone help me with this example?
body: <p>I just started to learn about programming in school and I was stuck on one of the problems.
  I know this is way too easy but I do not get any of this.
  I get the creating the class and constructing to the class that takes a single argument of type int array(I think) but I do not get the method part.
  Also if you guys do not want to provide an example, can you at least give me clear definition of constructor and method because I could not understand what it was saying in java tutorial cites.</p>
  
  <p>here is my work so far:</p>
  
  <pre><code>private int[] members;
      public Lesson3(int[] array1){
      this.members= array1;   
      }
  </code></pre>
  
  <p>and here is the task I was suppose to do it:</p>
  
  <p>Create a class called GiveMeNext. Add a constructor to the class that takes a single argument of type int array.  Store the int array in a member variable on the class.
  Add a member method to the class called getNextGreaterThan that has a single int parameter and returns an int.</p>