Integer.parseInt
couldn’t do the job, unless you were happy to lose data. Think about what you’re asking for here.
Try Long.parseLong(String)
or new BigInteger(String)
for really big integers.
solved In Java, how do I parse a string bigger than int size