this is my code i when i execute the program and select the items for customer david the total items selected in add to cart menu and total costs will be calculates ,, but when i select the customer rahul the total items and costs would appear as 0
i could declare the number of users similarly like i have declared number of music items (categoryDetailsObject.musicCount = 3) i have declared musicCount in category class
i have used the musicCount variable in for loop in chooseMusicItemDetails .
similarly i can use customerCount variable in input function but i dont know how to do it .
how to do it for customerDetailsObject since it has 2 objects
i cant do it like customerDetailsObject[0].customerCount = 2 ;