title: Adding elements to an ArrayList from another class
body: <p>I just have this basic code where I need help adding employee data to an ArrayList of another class. I am just writing this code in preparation for an assignment, so don't bash my code too much. Essentially though, i'll be needing to add elements of employees and delete them eventually. But for now, I just need help adding the elements to my other Employee class. =]</p>
  
  <pre><code>public class main {
      private static Employee employee;   
  
      public static void main(String[] args) {
          employee = new Employee(10,10); 
          System.out.println(employee.toString());
      }
  }
  </code></pre>
  
  <p>...............</p>
  
  <pre><code>import java.util.ArrayList;
  
  public class Employee {
      public int employeeNum;
      public double hourRate;
      ArrayList&lt;Employee&gt; Employee = new ArrayList&lt;&gt;();
  
      public Employee(int employeeNum, double hourRate){
          this.employeeNum = employeeNum;
          this.hourRate = hourRate;
      }
  
      public String toString(){
          return ""+employeeNum+hourRate;
      }
  }
  </code></pre>