title: .class exception when calling a method
body: <p>I am trying to create a small program that allows me to update an objects value. However i keep getting a .class expected error.</p>
  
  <ol>
  <li><p>I have the method labelled static to allow me to call within my main method
  this is a method in my main class i am trying to call a method in my student class to update the credits.</p>
  
  <pre><code>public static void doUpdate(MyStudent myStudent) {
    System.out.println("Enter credits: ");
    int numCredits = in.nextInt();
    System.out.println("Enter letter grade: ");
    String letterGrade = in.next();
    myStudent.takeClass(int numCredits, String letterGrade);
  }
  </code></pre></li>
  <li><p>this is my method from my student class type</p>
  
  <pre><code>public static void takeClass(int numCredits, String letterGrade) {
    // didn't think code was needed as it is pretty rudimentary
  }
  </code></pre></li>
  </ol>
  
  <p>What is causing this to ask for a .class expected at my int numcredits paramter in the calling of takeClass</p>