Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Charlie Miller   on Jun 12 In Java Category.

  
Question Answered By: Perdita Lopez   on Jun 12

When you put your product
name into the array, you are never incrementing the
array index. If that is your code, it is always "0".
You need to have an index to increment. The same
thing is happening when you fill your "order"
array.<br><br>If you have an IDE with a "debugger", step through
the code  as it goes through the loop and see the
values of the variables as they change.<br><br>Stephen
McConnell<br>http://www.crosslogic.com

Share: 

 
 
Didn't find what you were looking for? Find more on linear search Or get search suggestion and latest updates.


Tagged: