some code about Java