Random java codes, solutions of Sedgewick problems