java codes of stuffs