I just started learning java, tried to find the answer but I guess I\'m not smart enough.
I\'m trying to write an array which I got from some file into another file.
Presumably i is an int, not a boolean. Unlike C/C++, this won't be converted to a boolean implicitly. You must explicitly state your condition as a boolean.
while (i < arraycomment.length) // or some other constant