Hi guys, my code is compiling, but is not working the way I want it to, It's supposed to print out index locations for int and words, I just can't seem to figure it out a way to print different
string values at different array locations. I have my string array sorted, but I can't figure out how to print what is at index 0, 1, 2, etc or how to see if something isn't in the array.
Please help me out, I've been trying to figure it out for a while now but haven't seen any improvement in how to improve it and make it similar to the example output, also can't see to figure out how is it that plum appears in the example output? (brain burning/sigh)
Example Output:
--------------------Configuration: <Default>--------------------
Integer demo array contains:
1 3 5 7 9 11 13 15 17 19
-6 is not in the array.
-4 is not in the array.
-2 is not in the array.
1 is at index 0
2 is not in the array.
3 is at index 1
4 is not in the array.
5 is at index 2
String demo array contains:
apple orange peach strawberry watermelon
apple is at index 0
plum is not in the array.
Process completed.