title: Simple Pass Fail Java program
body: <p>I am trying to write a Java function based off of the following question:
  Write a program called CheckPassFail which prints "PASS" if the int variable "mark" is more than or equal to 50; or prints "FAIL" otherwise. The program shall always print “DONE” before exiting.</p>
  
  <p>This is what I have so far: </p>
  
  <pre><code>import java.util.*;
  import java.lang.*;
  import java.io.*;
  
  class CheckPassFail(){
      int m;
      public void GetGrade(int mark){
          m = mark;
      }
  public void GradeCheck(int mark){
      if(mark &gt;= 50){
          system.out.println("Pass");
      }
      else{
          system.out.println("Fail");
      }
  
  public static void main(String[] args){
      CheckPassFail grade = new GetGrade(66);
      grade.GradeCheck(66);
  }
  }
  </code></pre>
  
  <p>I believe my issue has to do with the GetGrade class? I feel as if setting m = mark is unnecessary for this program. Please let me know if you see any other errors. Thank you. </p>