Hello all, im rather confused about what's wrong with my code.... it says non-static method add(E) cannot be referenced from a static context, yet i can't see any reference to a static context....
here is my code; thanks in advance!
import java.util.*;
public class person {
public String name[];
public int phone[];
public String address[];
public String email[];
public person (String name, int phone, String address, String email)
{
String[] person = { "Josh", "Sam", "Paul", "Peter" };
ArrayList<String> al = new ArrayList<String>(Arrays.asList(person));
ArrayList.add(person);
}
}