C++ and Java for proj6