java scanner nextint infinite loop