title: Modify a Global Variable with a Function?
body: <p>In mousePressed, I need the value of aNumber, but I can't pass mousePressed(int aNumber).. so I need some sort of global to remain modified when theNumbers is called via javascript.. </p>
  
  <pre><code>int number = 0;
  int theNumbers(int aNumber) { //aNumber = 1, 2, or 3, from the javascript)
  
    println(number); // prints the correct number
    int number = aNumber; // set the global variable number equal to aNumber 
    return number;
  }
  
  void mousePressed() {
    aLongNumber = 10000000000;
  
    println(number); // prints 0 right now, should print the value of aNumber
    long numberLong = aLongNumber + (number * aLongNumber);
  }
  </code></pre>