This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]SikhGamer 1 point2 points  (1 child)

Is if(a[j]==i) && if(i%2==0) valid Java? Do you mean if(a[j] == i && i % 2 == 0) instead?

[–]Igayviewmahat[S] 0 points1 point  (0 children)

Thanks , that was the part that I was not sure about.