Some stuffs in Java