A bunch of .java codes can be found here for implementation of simple algorithms