title: How to get Object from ArrayList Without loop?
body: <p>Suppose I have a class Employee :</p>
  
  <pre><code>class Employee {
           Employee(String name, int age)
           {
               this.name = name ;
               this.age = age;
           }
           String name ;
           int age;
       }
  </code></pre>
  
  <p>Now Create a List of this like :</p>
  
  <pre><code>ArrayList&lt;Employee&gt; aa = new ArrayList&lt;Employee&gt;();
   aa.add(new Employee("Nitish", 26));
   aa.add(new Employee("Sh", 2));
   aa.add(new Employee("S", 1));
  </code></pre>
  
  <p>Can i get Employee Object Where name value is "Nitish"? Without For loop</p>