How to read number from given text in java