Some practices written in Java