Java Join Two Strings Python Code For Snake