```
class Client{
String name;

Client(String name){
this.name=name;
}

Client (){
name=null;
}
}

class Cashier{

LinkedList <Client> cashierclients;

Cashier(LinkedList<Client> cashierclients){
this.cashierclients=cashierclients;
}
Cashier(){
//this.cashierclients=null;
}

}
class test{
public static void main(String args []){

LinkedList<Client> l=new LinkedList<Client>();

//i do some scans here to add the names of persons to the LinkedList l                   

Cashier [] cashier=new Cashier[numberofcashiers];

for(int i=0;i<numberofcashiers; i++){
    cashier[i]=new Cashier();
}

```

Now I want to add a client to cashier[0] i do this:

```
cashier[0].cashierclients.addLast(l.get(0));

```

everything works fine but when I want to print the size of cashier[1] it returns 1 but it should return 0 because I did not add any person to cashier[1]. Any ideas as to what is wrong?

```
// the error happens here
cashier[1].cashierclients.size();

```