Java Data Structures Class