some of the java codes i write