java: avoid Integer(String), use parseInt