Help ! very strange "error"
in
Programming Questions
•
7 months ago
when i run this code :
- while(a<ingredients.length)
- {
- for(int b=0;b<ingreRecette.length;b++)
- {
- println(ingredients[a]);
- println(ingreRecette[b]);
- if (ingredients[a]==ingreRecette[b])
- {
- ingredientCom++;
- }
- }
- a++;
- }
But when i run it there is a "error" that i don't even understand :
when i use println(
ingredients[a]+"=="+ingreRecette[b]); it shows me that it correspond many times but it never launch the code :
- if (ingredients[a]==ingreRecette[b])
- {
- ingredientCom++;
- }
Why ???
1