basic DS programs in java