ohhhhhhh. Thanks for that. So i recompiled it and it wont work properly it doesnt recognize that i have Cheeseburger, Pepsi and chips in the array when i enter in Cheeseburger it gives me the else...
Type: Posts; User: NewAtJava
ohhhhhhh. Thanks for that. So i recompiled it and it wont work properly it doesnt recognize that i have Cheeseburger, Pepsi and chips in the array when i enter in Cheeseburger it gives me the else...
yes but doesnt price = foodPrices[x] give it a value. cause x is going to be either 0 1 2.
This is the code, in this code when i try to compile it tell me that price might not have been initialized. I went through the code and cant find whats wrong . can someone tell me why the price...