item is a String. You are comparing an int to a String in item!=999. Your issue would be because of this fact.
--- Update ---
The other issue you are having is outFile doesn't exist. My...
Type: Posts; User: jbarke12
item is a String. You are comparing an int to a String in item!=999. Your issue would be because of this fact.
--- Update ---
The other issue you are having is outFile doesn't exist. My...