java example and library