Implementation of Data Structures in Java