Start
here[
^], for all Java classes. I'm not sure about sharing variables between classes (assuming you mean independently running) but I'm sure you can pass parameters when you
exec
a new class.
As to posting code, that, I'm afraid, is your responsibility.