C++ and Java for proj3