How to create a Thread for each person of the arraylist
<p>I have an arraylist of person <code>ArrayList&lt;Person&gt;</code>. Each person get it's name and age in random. In that <code>ArrayList</code> of <code>Person</code> I filtered out those age 18 using a lambda expression. </p>

<p>My question is how can I create a <code>Thread</code> for each filtered <code>Person</code> of the <code>Arraylist</code>. </p>

<p>My code:</p>

<pre><code>public class Person implements Runnable
{
    private String name;
    private int age;

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void run() {
        // to fill up later
    }
}

public class Main {
        private static int nameCount = 1;
        public static List&lt;Person&gt; list;

        public static void main(String[] args) {
            list = new ArrayList&lt;Person&gt;();
            for (int i = 0; i &lt; 5; i++) {
                list.add(new Person(getPersonName(), getPersonAge());
            }
            list.removeIf(p -&gt; p.getage().equals(18));
            for (Person person : list) {
                System.out.println(persion);
            } 
        }

        public static String getPersonName() {
            String nameto = "PERSON" + String.valueOf(nameCount);
            nameCount++;
            return nameto;
        }

        public static int getPersonAge() {
            Random ran = new Random();
            int ageperson = ran.nextInt(25) + 1;
            return ageperson;
        }
        //how to make an instance of Thread after filtering the person
    }
</code></pre>