I have the following statement...
personName[0] = n[y].getName().equals ("Penny") ? personName[0]++ : personName[0];
personName[] is an integer array. getName returns a string. Every time getName is equal to "Penny," I want personName[0] to add one. How should I do this? When I run it, personName[0] does not add one and I don't know why. 
 
     
    