I have come across a problem that i cant salve, What i have is an string array with 60 values in it and they concists of either “vacant” or “reserved”. Now what i need to do is to show only those arayy index that are either vacant or reserved and i have no clue on how to go about it. :/ I am stumped to say the least. I know how to get the number of eatch sort in the array so thats no problem.
I just cant figure out how to get those index values into a method that diplays them in my textbox. My thinking is that since i know how many they are i can atleast know the number of iterrations needed to show them all in the textbox.
So please i need some ideas as i am apparently experiencing a major brainfreez 😛 (both my two grey ones are fighting)
Thanks for any ideas!
//Regards
You can just traverse the array, building a list of indices that match your condition, e.g.