John Jai wrote:Hi,
Could you please give the input & output you need from your program? - might be better useful for others to help you!
Is this what you want? a Name string... or just count occurrence & return an incremented int value
Dhivya -> Dhivya1 -> Dhivya2 -> Dhivya3
now comes a Dhivya1
Dhivya1 -> Dhivya11 -> Dhivya12 -> Dhivya13
Say this is in the list now [Dhivya, Dhivya1, Dhivya2,Dhivya3]
1. Say what should happen if a "Dhivya" comes?
2. What should be returned if a "Dhivya2" comes?