Soldato
- Joined
- 24 Apr 2011
- Posts
- 5,455
I created a client object and I want to create an array list that stores the information client objects.
Code location: Client.java
Code Location: Client Handling.java
Error at ClientHandling.java:
Any ideas?
Code location: Client.java
Code:
ArrayList<Client> ClientInfo = new ArrayList<Client>();
public ArrayList<Client> getClientInfo() {
return ClientInfo;
}
Code Location: Client Handling.java
Code:
c.setClientId(Client.getClientInfo().size());
Client.getClientInfo().add(c);
Error at ClientHandling.java:
![ncilHaCfjUY6JeszCnWJ.png](http://vvcap.net/db/ncilHaCfjUY6JeszCnWJ.png)
![ySzyKvM2qT9mu7pqBCmZ.png](http://vvcap.net/db/ySzyKvM2qT9mu7pqBCmZ.png)
Any ideas?
Last edited: