 He has also heard of a man, poorly dressed, who gives money to other poor people, the "beggar who gives alms", who had a granddaughter with him and who has been heard to say that she came from Montfermeil.Javert goes undercover, discovers that it is Jean Valjean, and makes plans to arrest him.Valjean recognizes Javert, and taking Cosette, walks out of the house and leaves.