BOM of Integer.parseInt() doom
Tl;dr; version: Byte order mark in text file was responsible for Integer.parseInt() method throwing an exception (if it wasn’t obvious from a title).
That post is probably first one to talk about some specific issue, so here we go for a ride! In case you missed categories marks — it’s about Java, version 1.8.0_45.
Yesterday I was teaching my girlfriend how to code in Java (let me omit my reasons for choosing this language). It was actually related to the second day of Advent of Code (which was described in the previous post) assignment. Suddenly I received a complaint from her that her IDE was throwing a NumberFormatException for her Integer.parseInt() method.
