Some java codes i've done in data structures class