I created a client object and I want to create an array list that stores the information client objects.
Code location: Client.java
ArrayList<Client> ClientInfo = new ArrayList<Client>();
public ArrayList<Client> getClientInfo() {
return ClientInfo;
}
Code Location: Client Handling.java
c.setClientId(Client.getClientInfo().size());
Client.getClientInfo().add(c);
Error at ClientHandling.java:
http://vvcap.net/db/ncilHaCfjUY6JeszCnWJ.png
http://vvcap.net/db/ySzyKvM2qT9mu7pqBCmZ.png
Any ideas?
EDIT: MY CLIENT HANDLING CLASS IS NOT STATIC! That is what I am having a problem with. it is not static, and for some reason it is telling me it is static.