Some pratice for java