"Programming Collective Intelligence" samples implemented in Java