title: ArrayList won't print in console
body: <p>I have an <code>Employee</code> class with one method named <code>addEmployee</code> which manipulates an <code>ArrayList</code> to add employees. My following code won't print the list on the console screen. I can't find out what's wrong with my code.</p>
  <pre><code>package com.sib.Tmanager;
  
  import java.util.ArrayList;
  import java.util.Scanner;
  
  public class Employee {
      private String EmpFName;
      private String EmpLName;
  
      public Employee(String empFName, String empLName) {
          super();
          EmpFName = empFName;
          EmpLName = empLName;
      }
      public String getEmpFName() {
          return EmpFName;
      }
      public void setEmpFName(String empFName) {
          EmpFName = empFName;
      }
      public String getEmpLName() {
          return EmpLName;
      }
      public void setEmpLName(String empLName) {
          EmpLName = empLName;
      }
  
      public static void addEmployee()
      {
          ArrayList&lt;Employee&gt; Emplist= new ArrayList&lt;Employee&gt;();
      
          Scanner s=new Scanner(System.in) ;
          
          System.out.println(&quot;Enter the Firstname of the employee&quot;);
          String Fname= s.next();
          System.out.println(&quot;Enter the Lastname of the employee&quot;);
          String Lname= s.next();
          
          Employee emp = new Employee(Fname, Lname);
          Emplist.add(emp);
          
          //System.out.println(emp.EmpFName +&quot; &quot;+ emp.EmpLName);
          
          System.out.println(Emplist);
      }
  
  }
  </code></pre>
  <p>I tried to change my code by overriding the ToString() method and I still have the same following output.</p>
  <blockquote>
  <p>Enter employee's Firstname</p>
  <p>jason</p>
  <p>Enter employee's Lastname</p>
  <p>karl</p>
  <p>[com.sib.Tmanager.Employee@1a758cb]</p>
  </blockquote>