In the code below I have a classic java pass by value issue (written in processing; setup() == main).
void setup() { A a = new A(); a.makeTheB(a.b);