title: how to call another method in a method within the same class
body: <p>This is the code fragment so far, I have tried calling the getCard Method that I coded within the same class but it seems to be giving me errors when I compile</p>
  
  <pre><code>@WebService
  public class Card {
  
      @WebMethod
      public int getCard() {
          Random r = new Random();
          int rand = r.nextInt((10) + 1);
          return rand;
      }
  
      public int getCards() {
          int one;
          one.getCard();
          int two;
          two.getCard();
          //getCard one = new getCard();
          //getCard two = new getCard();
          int three = (one + two);
          return three;
      }
  }
  </code></pre>