Java data structure related code samples