Practice and exercises: C++ and Java