Data structure  implemented by Java