SyntaxFix
Write A Post
Hire A Developer
Questions
Change
id.equals(list[pos].getItemNumber())
to
id == list[pos].getItemNumber()
For more details, you should learn the difference between the primitive types like int, char, and double and reference types.
int
char
double