Update and rename test.java to test.cpp