How do I use Processing to read and write data to an Arduino

Yes – just paste it into PDE and try it!

String s = "Foo";
s = "Bar";
print(s);

Bar