Indeed,
Integer.getInteger() does something totally different than what you think. It is
not parsing a
string into an integer, but it's getting a system property with a specific name.
Instead of these two lines:
You want something like this:
(I'd use parseInt() and not valueOf() as Christophe suggests).