nulls
Hi
i have a method that takes a name of a client (i have an array of client object) and searches the array till it finds the client, setting the varialbe poss to the index of the serched client so that this client can be displayed. i instantiated the poss variable to null initially so that i can put in an if statement to check if poss = null, display the sentance 'client was not found', the compiler didnt like this, it expects a int tipe not a null tipe. i cant set poss to 0 becoz when i want to display the client at index [poss] it will display client 0 regardless of if i want to or not, can someone tell m another way to do this? as my idea never worked
Cheers

