Insert Variable Into String Cpp Methods In Java