Data Structures and Algorithms/Java