title: Classes and subclass printing
body: <p>I am trying to print the grade for the student subclass, i feel like i need some type of if statement or array.I am trying to make a code that can be passed a number such as 3 for "Junior" but can also be called through a code such Student.JUNIOR to print the grade level junior. my desired output is:</p>
  
  <p><img src="https://i.imgur.com/IBV8GT5.png" alt=""></p>
  
  <pre><code>class Person {
      String name;
      String campus;
      String phone;
      String email;
      int FRESHMAN = 1;
      int SOPHMORE = 2;
      int JUNIOR = 3;
      int SENIOR = 4;
  
      public Person(String n, String cam, String cell, String mail) {
          name = n;
          campus = cam;
          phone = cell;
          email = mail;
      }
  
      public String toString() {
          return "Name:" + name + "; Campus:" + campus + "; Phone:" + phone + "; Email:" + email + " ";
      }
  }
  
  class Student extends Person {
      int grade;
  
      public Student(String n, String cam, String cell, String mail, int grade) {
          super(n, cam, cell, mail);
  
      }
  
      public String toString() {
  
          return super.toString() + "\nClass:";
      }
  }
  
  class Employee extends Person {
      private String title;
  
      public Employee(String n, String cam, String cell, String mail, String position) {
          super(n, cam, cell, mail);
          title = position;
      }
  
      public String toString() {
          return super.toString() + "\nTitle:" + title;
      }
  }
  
  public class Exam3c {
      public static void main(String[] args) {
  
          String name = "David";
          String campus = "Terry";
          String phone = "302-573-3254";
          String email = "Genos@edu";
  
          Person P1 = new Person(name, campus, phone, email);
          System.out.println("P1: \n" + P1);
  
          Student S1 = new Student(name, campus, phone, email, 1);
          System.out.println("S1: \n" + S1);
  
          Student S2 = new Student("Bill While", "Nowhere", "012-345-6789", "bw@nowhere.edu", 3);
          System.out.println("S2: \n" + S2);
  
          Employee E1 = new Employee(name, campus, phone, email, "Faculty");
          System.out.println("E1: \n" + E1);
      }
  }
  </code></pre>