Java Runtime error for using Integer.parseInt() , though proper updation of integer in loop

Please either format your code or (better!) link to your submission - the forum software has mangled it and it won’t compile! :slight_smile:

Also: what Problem are you trying to solve? :slight_smile: