Dating rules for divorced women updating array using multiple threads java