Green’s Dictionary of Slang

mocha and java v.

[the brandnames of coffee, thus the image of chatting over a cup of coffee]

to get on, to be friendly.

[US]Ade More Fables in Sl. (1960) 113: They did not Mocha and Java worth a Cent.